From b386b85bd3c9890799c1b757cfb0db2db81ec97d Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Wed, 2 Jul 2014 02:27:26 +0900 Subject: [PATCH] Make the meaning of "tabsToRestore" clear --- modules/browser.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/browser.js b/modules/browser.js index 7f080fdb..98d3cd20 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -6626,12 +6626,12 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { var level = utils.getTreePref('restoreTree.level'); var tabs = this.getAllTabs(this.mTabBrowser); - var tabsToRestore = 0; + var tabsToRestore = 0; // it is the number of pending tabs. if (utils.SessionStoreInternal && utils.SessionStoreInternal._browserEpochs) { // for Firefox 29 and later // (after https://bugzilla.mozilla.org/show_bug.cgi?id=942374) - var browserEpochs = utils.SessionStoreInternal._browserEpochs; + let browserEpochs = utils.SessionStoreInternal._browserEpochs; tabsToRestore = tabs.filter(function(aTab) { return browserEpochs.has(aTab.linkedBrowser.permanentKey); }).length; @@ -6646,7 +6646,6 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { dump(' tabsToRestore = '+tabsToRestore+'\n'); if ( level <= this.kRESTORE_TREE_LEVEL_NONE || - !tabsToRestore || tabsToRestore <= 1 ) return;