Bug 1642084 - Check that tabs are connected when determining the amount of closed tabs. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D78076
This commit is contained in:
Jared Wein 2020-06-03 16:02:37 +00:00
parent 58e186a2d9
commit 7bc3b4c0c7

View File

@ -3338,7 +3338,7 @@
this._clearMultiSelectionLocked = false;
this.avoidSingleSelectedTab();
let closedTabsCount =
initialTabCount - tabs.filter(t => !t.closing).length;
initialTabCount - tabs.filter(t => t.isConnected && !t.closing).length;
// Don't use document.l10n.setAttributes because the FTL file is loaded
// lazily and we won't be able to resolve the string.
document