Bug 485237 - Use \!toolbar.visible instead of the chromehidden attribute existence to identify popups. r=gavin
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user