summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;