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:
Dão Gottwald 2011-01-20 16:35:44 +01:00
parent f76255784b
commit c205031cac
3 changed files with 10 additions and 1 deletions

View File

@ -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 ?

View File

@ -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)

View File

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