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