Bug 563337 - "Error: preview is undefined" and "this.preview is undefined" when closing the last tab with browser.tabs.closeWindowWithLastTab = false. r=gavin

--HG--
extra : rebase_source : 84f1e724f6a05b13c10b102de2df1007163ceb74
This commit is contained in:
Dão Gottwald 2011-05-18 10:04:36 +02:00
parent bd2912a79a
commit f3722b6322

View File

@ -1537,8 +1537,10 @@
}
this._removingTabs.push(aTab);
this.tabContainer.updateVisibility();
if (newTab)
this.addTab("about:blank", {skipAnimation: true});
else
this.tabContainer.updateVisibility();
// We're committed to closing the tab now.
// Dispatch a notification.
@ -1594,8 +1596,6 @@
// update the UI early for responsiveness
aTab.collapsed = true;
if (aNewTab)
this.addTab("about:blank", {skipAnimation: true});
this.tabContainer._fillTrailingGap();
this._blurTab(aTab);