mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 914748 - Let openURL call openUILinkIn rather than browserDOMWindow.openURI, as the latter may do nothing and return null. r=felipe
--HG-- extra : rebase_source : ca103aae1589352bd5ee3d9deb8c23f2770d912e
This commit is contained in:
parent
ff741eed54
commit
7f896eccdc
@ -368,7 +368,7 @@ function test18a() {
|
||||
if (event.type == "TabOpen") {
|
||||
gBrowser.tabContainer.removeEventListener("TabOpen", this, false);
|
||||
this.tab = event.originalTarget;
|
||||
ok(event.target.label == this.url, "Test 18a, Update link should open up the plugin check page");
|
||||
is(event.target.label, this.url, "Test 18a, Update link should open up the plugin check page");
|
||||
gBrowser.removeTab(this.tab);
|
||||
test18b();
|
||||
}
|
||||
|
@ -1089,10 +1089,7 @@ function openURL(aURL)
|
||||
else {
|
||||
var recentWindow = Services.wm.getMostRecentWindow("navigator:browser");
|
||||
if (recentWindow) {
|
||||
var win = recentWindow.browserDOMWindow.openURI(uri, null,
|
||||
recentWindow.browserDOMWindow.OPEN_DEFAULTWINDOW,
|
||||
recentWindow.browserDOMWindow.OPEN_NEW);
|
||||
win.focus();
|
||||
recentWindow.openUILinkIn(uri.spec, "tab");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user