зеркало из https://github.com/mozilla/pjs.git
Bug 664669 - tab._tabViewTabIsRemovedAfterRestore should be attached to the tabItem rather than the xulTab; r=dao
This commit is contained in:
Родитель
b5796c2ec8
Коммит
db2538e95f
|
@ -368,8 +368,8 @@ let TabView = {
|
|||
if (this._window) {
|
||||
this._window.UI.restoredClosedTab = true;
|
||||
|
||||
if (blankTabToRemove)
|
||||
blankTabToRemove._tabViewTabIsRemovedAfterRestore = true;
|
||||
if (blankTabToRemove && blankTabToRemove._tabViewTabItem)
|
||||
blankTabToRemove._tabViewTabItem.isRemovedAfterRestore = true;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -763,8 +763,9 @@ let UI = {
|
|||
// 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
|
||||
// where the restored tab goes. So do not show the TabView.
|
||||
let tabItem = tab && tab._tabViewTabItem;
|
||||
let closingBlankTabAfterRestore =
|
||||
(tab && tab._tabViewTabIsRemovedAfterRestore);
|
||||
(tabItem && tabItem.isRemovedAfterRestore);
|
||||
|
||||
if ((closingLastOfGroup || closingUnnamedGroup) &&
|
||||
!closingBlankTabAfterRestore) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче