Bug 617522. App tabs' pinnedonly=true attribute needs to be updated when closing a tab, because that might leave only app tabs. r=dao a=blocking-final

This commit is contained in:
Felipe Gomes 2010-12-21 15:53:58 -08:00
parent 947848c536
commit aefeb3c5b2

View File

@ -1601,8 +1601,6 @@
if (browser == this.mCurrentBrowser)
this.mCurrentBrowser = null;
var wasPinned = aTab.pinned;
// Invalidate browsers cache, as the tab is removed from the
// tab container.
this._browsers = null;
@ -1615,8 +1613,7 @@
this.tabs[i]._tPos = i;
if (!this._windowIsClosing) {
if (wasPinned)
this.tabContainer._positionPinnedTabs();
this.tabContainer._positionPinnedTabs();
// update tab close buttons state
this.tabContainer.adjustTabstrip();