mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1059600 - Set the URI as the initial tab label for javascript links opened in new tabs. r=gijs
--HG-- extra : rebase_source : 3a28661f42daa9ec6243234d9d1eaf8b01055e32
This commit is contained in:
parent
79e9a5b3bb
commit
1bb48df2e6
@ -1659,6 +1659,9 @@
|
||||
// allows the TabLabelModified event to be properly dispatched.
|
||||
if (!aURI || isBlankPageURL(aURI)) {
|
||||
t.label = this.mStringBundle.getString("tabs.emptyTabTitle");
|
||||
} else if (aURI.toLowerCase().startsWith("javascript:")) {
|
||||
// This can go away when bug 672618 or bug 55696 are fixed.
|
||||
t.label = aURI;
|
||||
}
|
||||
|
||||
this.tabContainer.updateVisibility();
|
||||
|
@ -121,7 +121,7 @@ function setUpTest(aTestName, aIDForNextTest, aFuncForNextTest, aChildTabLink) {
|
||||
|
||||
mainTab = gTestWin.gBrowser.selectedTab;
|
||||
// get the link for the next test from the main page
|
||||
let target = gTestWin.content.document.getElementById(aIDForNextTest);
|
||||
let target = gTestWin.content.document.getElementById(aIDForNextTest).href;
|
||||
gTestWin.gBrowser.addTab(target);
|
||||
gTestWin.gBrowser.selectTabAtIndex(1);
|
||||
waitForSomeTabToLoad(checkPopUpNotification);
|
||||
|
Loading…
Reference in New Issue
Block a user