Bug 485237 - Use \!toolbar.visible instead of the chromehidden attribute existence to identify popups. r=gavin

This commit is contained in:
Dão Gottwald
2012-01-24 01:37:54 +01:00
parent 36a3713b84
commit 8e027cf8fd
3 changed files with 4 additions and 4 deletions

View File

@@ -5201,7 +5201,7 @@ nsBrowserAccess.prototype = {
let win, needToFocusWin;
// try the current window. if we're in a popup, fall back on the most recent browser window
if (!window.document.documentElement.getAttribute("chromehidden"))
if (window.toolbar.visible)
win = window;
else {
win = Cc["@mozilla.org/browser/browserglue;1"]