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:
Dão Gottwald 2013-09-16 11:27:22 +02:00
parent ff741eed54
commit 7f896eccdc
2 changed files with 2 additions and 5 deletions

View File

@ -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();
}

View File

@ -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;
}