Bug 664669 - tab._tabViewTabIsRemovedAfterRestore should be attached to the tabItem rather than the xulTab; r=dao

This commit is contained in:
Tim Taubert
2011-06-17 18:47:43 +02:00
parent 42eedd7151
commit 176fca4112
2 changed files with 4 additions and 3 deletions

View File

@@ -368,8 +368,8 @@ let TabView = {
if (this._window) { if (this._window) {
this._window.UI.restoredClosedTab = true; this._window.UI.restoredClosedTab = true;
if (blankTabToRemove) if (blankTabToRemove && blankTabToRemove._tabViewTabItem)
blankTabToRemove._tabViewTabIsRemovedAfterRestore = true; blankTabToRemove._tabViewTabItem.isRemovedAfterRestore = true;
} }
}, },

View File

@@ -763,8 +763,9 @@ let UI = {
// 3) When a blank tab is active while restoring a closed tab the // 3) When a blank tab is active while restoring a closed tab the
// blank tab gets removed. The active group is not closed as this is // blank tab gets removed. The active group is not closed as this is
// where the restored tab goes. So do not show the TabView. // where the restored tab goes. So do not show the TabView.
let tabItem = tab && tab._tabViewTabItem;
let closingBlankTabAfterRestore = let closingBlankTabAfterRestore =
(tab && tab._tabViewTabIsRemovedAfterRestore); (tabItem && tabItem.isRemovedAfterRestore);
if ((closingLastOfGroup || closingUnnamedGroup) && if ((closingLastOfGroup || closingUnnamedGroup) &&
!closingBlankTabAfterRestore) { !closingBlankTabAfterRestore) {