Bug 660446 - Use tab.closing property instead of _removingTabs. r=iangilman

This commit is contained in:
Dão Gottwald 2011-06-01 10:20:53 +02:00
parent 622580fa22
commit f9befacdc4
2 changed files with 2 additions and 6 deletions

View File

@ -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);
}));
},

View File

@ -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;
}