зеркало из https://github.com/mozilla/gecko-dev.git
Bug 596833 - Refinement for bug 595943: No need to iterate over all tabs, just the ones at the beginning r=ian
This commit is contained in:
Родитель
b5613a6def
Коммит
4aee9856b2
|
@ -714,9 +714,9 @@ let UI = {
|
|||
// if not closing the last tab
|
||||
if (gBrowser.tabs.length > 1) {
|
||||
// Don't return to TabView if there are any app tabs
|
||||
for (let a = 0; a < gBrowser.tabs.length; a++) {
|
||||
for (let a = 0; a < gBrowser._numPinnedTabs; a++) {
|
||||
let theTab = gBrowser.tabs[a];
|
||||
if (theTab.pinned && gBrowser._removingTabs.indexOf(theTab) == -1)
|
||||
if (gBrowser._removingTabs.indexOf(theTab) == -1)
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче