mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 660446 - Use tab.closing property instead of _removingTabs. r=iangilman
This commit is contained in:
parent
622580fa22
commit
f9befacdc4
@ -57,10 +57,7 @@ let AllTabs = {
|
||||
get tabs() {
|
||||
// Get tabs from each browser window and flatten them into one array
|
||||
return Array.concat.apply(null, browserWindows.map(function(browserWindow) {
|
||||
let removingTabs = browserWindow.gBrowser._removingTabs;
|
||||
return Array.filter(browserWindow.gBrowser.tabs, function (tab) {
|
||||
return removingTabs.indexOf(tab) == -1;
|
||||
});
|
||||
return Array.filter(browserWindow.gBrowser.tabs, function (tab) !tab.closing);
|
||||
}));
|
||||
},
|
||||
|
||||
|
@ -755,8 +755,7 @@ let UI = {
|
||||
if (gBrowser.tabs.length > 1) {
|
||||
// Don't return to TabView if there are any app tabs
|
||||
for (let a = 0; a < gBrowser._numPinnedTabs; a++) {
|
||||
let theTab = gBrowser.tabs[a];
|
||||
if (gBrowser._removingTabs.indexOf(theTab) == -1)
|
||||
if (!gBrowser.tabs[a].closing)
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user