diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-11 12:12:49 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-11 12:12:49 +0200 |
commit | 263927c717e7eb7146091839930f36424d7bd5bf (patch) | |
tree | 85e5d60a368111f8fd5d1c71b0f20b4f3333e3e4 /toolkit | |
parent | 70974f59f363282b802ffb0b5c855421ee62ec43 (diff) | |
download | UXP-263927c717e7eb7146091839930f36424d7bd5bf.tar UXP-263927c717e7eb7146091839930f36424d7bd5bf.tar.gz UXP-263927c717e7eb7146091839930f36424d7bd5bf.tar.lz UXP-263927c717e7eb7146091839930f36424d7bd5bf.tar.xz UXP-263927c717e7eb7146091839930f36424d7bd5bf.zip |
[PALEMOON] Login Manager Prompter: win.gBrowser is undefined
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/components/passwordmgr/nsLoginManagerPrompter.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/toolkit/components/passwordmgr/nsLoginManagerPrompter.js b/toolkit/components/passwordmgr/nsLoginManagerPrompter.js index b66489234..08c1e59e6 100644 --- a/toolkit/components/passwordmgr/nsLoginManagerPrompter.js +++ b/toolkit/components/passwordmgr/nsLoginManagerPrompter.js @@ -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; |