Bug 664669 - tab._tabViewTabIsRemovedAfterRestore should be attached to the tabItem rather than the xulTab; r=dao
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user