Bug 845811 - openLinkIn should use the target window's isBlankPageURL function. r=ehsan

--HG--
extra : rebase_source : ca94dd1d85f6f51e5a600f972840f4a95ec47851
This commit is contained in:
Dão Gottwald 2013-02-28 19:18:41 +01:00
parent 7b87561c4f
commit 2a1e10f129

View File

@ -328,11 +328,11 @@ function openLinkIn(url, where, params) {
// (e.g. "javascript:window.open('');").
var fm = Components.classes["@mozilla.org/focus-manager;1"].
getService(Components.interfaces.nsIFocusManager);
if (window == fm.activeWindow || isBlankPageURL(url))
if (window == fm.activeWindow || w.isBlankPageURL(url))
w.focus();
w.gBrowser.selectedBrowser.focus();
if (!loadInBackground && isBlankPageURL(url))
if (!loadInBackground && w.isBlankPageURL(url))
w.focusAndSelectUrlBar();
}