mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
7b87561c4f
commit
2a1e10f129
@ -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