mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 623779 - Middle-clicking back/forward/reload of an app tab makes the duplicate tab also an app tab. r=zpao
This commit is contained in:
parent
f76255784b
commit
c205031cac
@ -1183,6 +1183,7 @@ SessionStoreService.prototype = {
|
||||
this._updateTextAndScrollDataForTab(sourceWindow, aTab.linkedBrowser, tabState, true);
|
||||
tabState.index += aDelta;
|
||||
tabState.index = Math.max(1, Math.min(tabState.index, tabState.entries.length));
|
||||
tabState.pinned = false;
|
||||
|
||||
this._sendWindowStateEvent(aWindow, "Busy");
|
||||
let newTab = aTab == aWindow.gBrowser.selectedTab ?
|
||||
|
@ -112,6 +112,7 @@ _BROWSER_TEST_FILES = \
|
||||
browser_495495.js \
|
||||
browser_500328.js \
|
||||
browser_514751.js \
|
||||
browser_522375.js \
|
||||
browser_522545.js \
|
||||
browser_524745.js \
|
||||
browser_528776.js \
|
||||
@ -135,7 +136,7 @@ _BROWSER_TEST_FILES = \
|
||||
browser_607016.js \
|
||||
browser_615394-SSWindowState_events.js \
|
||||
browser_618151.js \
|
||||
browser_522375.js \
|
||||
browser_623779.js \
|
||||
$(NULL)
|
||||
|
||||
ifneq ($(OS_ARCH),Darwin)
|
||||
|
@ -0,0 +1,7 @@
|
||||
function test() {
|
||||
gBrowser.pinTab(gBrowser.selectedTab);
|
||||
var newTab = gBrowser.duplicateTab(gBrowser.selectedTab);
|
||||
ok(!newTab.pinned, "duplicating a pinned tab creates unpinned tab");
|
||||
gBrowser.removeTab(newTab);
|
||||
gBrowser.unpinTab(gBrowser.selectedTab);
|
||||
}
|
Loading…
Reference in New Issue
Block a user