mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 04:09:50 +00:00
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:
parent
bd2912a79a
commit
f3722b6322
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user