Skip to content

Commit

Permalink
Bug 563337 - "Error: preview is undefined" and "this.preview is undef…
Browse files Browse the repository at this point in the history
…ined" when closing the last tab with browser.tabs.closeWindowWithLastTab = false. r=gavin

--HG--
extra : rebase_source : 84f1e724f6a05b13c10b102de2df1007163ceb74
  • Loading branch information
daogottwald committed May 18, 2011
1 parent 711cf84 commit 183c89f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions browser/base/content/tabbrowser.xml
Expand Up @@ -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.
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 183c89f

Please sign in to comment.