mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
[PALEMOON] Login Manager Prompter: win.gBrowser is undefined
This commit is contained in:
parent
f091415fe1
commit
f5aa3696c5
1 changed files with 5 additions and 3 deletions
|
|
@ -1408,9 +1408,11 @@ LoginManagerPrompter.prototype = {
|
|||
let windows = Services.wm.getEnumerator(null);
|
||||
while (windows.hasMoreElements()) {
|
||||
let win = windows.getNext();
|
||||
let browser = win.gBrowser.getBrowserForContentWindow(aWindow);
|
||||
if (browser) {
|
||||
return { win, browser };
|
||||
if (win.gBrowser) {
|
||||
let browser = win.gBrowser.getBrowserForContentWindow(aWindow);
|
||||
if (browser) {
|
||||
return { win, browser };
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue