mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 845811 - openLinkIn should use the target window's isBlankPageURL function. r=ehsan
--HG-- extra : rebase_source : ca94dd1d85f6f51e5a600f972840f4a95ec47851
This commit is contained in:
parent
b416d91417
commit
dcf1e37fc3
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user