mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 07:07:30 +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);
|
let windows = Services.wm.getEnumerator(null);
|
||||||
while (windows.hasMoreElements()) {
|
while (windows.hasMoreElements()) {
|
||||||
let win = windows.getNext();
|
let win = windows.getNext();
|
||||||
let browser = win.gBrowser.getBrowserForContentWindow(aWindow);
|
if (win.gBrowser) {
|
||||||
if (browser) {
|
let browser = win.gBrowser.getBrowserForContentWindow(aWindow);
|
||||||
return { win, browser };
|
if (browser) {
|
||||||
|
return { win, browser };
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue