summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-12 07:06:16 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-12 07:06:16 +0200
commit6d10eb1aff1f927a9a1ac0cf2dc49a179a8b1529 (patch)
tree50ace60310778f477bbdae568dcb435ab9bb617e
parent1d1955f1ebaa22cb14192b8e7ee2948e6497487e (diff)
downloadUXP-6d10eb1aff1f927a9a1ac0cf2dc49a179a8b1529.tar
UXP-6d10eb1aff1f927a9a1ac0cf2dc49a179a8b1529.tar.gz
UXP-6d10eb1aff1f927a9a1ac0cf2dc49a179a8b1529.tar.lz
UXP-6d10eb1aff1f927a9a1ac0cf2dc49a179a8b1529.tar.xz
UXP-6d10eb1aff1f927a9a1ac0cf2dc49a179a8b1529.zip
Revert "[PALEMOON] Login Manager Prompter: win.gBrowser is undefined"
This reverts commit 263927c717e7eb7146091839930f36424d7bd5bf.
-rw-r--r--toolkit/components/passwordmgr/nsLoginManagerPrompter.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/toolkit/components/passwordmgr/nsLoginManagerPrompter.js b/toolkit/components/passwordmgr/nsLoginManagerPrompter.js
index 08c1e59e6..b66489234 100644
--- a/toolkit/components/passwordmgr/nsLoginManagerPrompter.js
+++ b/toolkit/components/passwordmgr/nsLoginManagerPrompter.js
@@ -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;