mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
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:
parent
58e186a2d9
commit
7bc3b4c0c7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user