Bug 509412 - tab close buttons disappear when closing the first tab. r=dao

This commit is contained in:
Bill Gianopoulos 2009-08-16 02:34:20 +02:00
parent f1f0d74e5a
commit 2ab3348ca6

View File

@ -1490,7 +1490,6 @@
if (aNewTab && gURLBar)
gURLBar.focus();
this.tabContainer.adjustTabstrip();
// workaround for bug 345399
this.tabContainer.mTabstrip._updateScrollButtonsDisabledState();
}
@ -1528,6 +1527,10 @@
for (let i = aTab._tPos; i < this.mTabs.length; i++)
this.mTabs[i]._tPos = i;
// update tab close buttons state
if (!this._windowIsClosing)
this.tabContainer.adjustTabstrip();
// update first-tab/last-tab/beforeselected/afterselected attributes
this.selectedTab._selected = true;