mirror of
https://github.com/zen-browser/desktop.git
synced 2026-03-30 12:21:55 +00:00
fix: Fixed essentials being ignored when closing tabs, b=closes #6968, c=workspaces
This commit is contained in:
@@ -1495,6 +1495,7 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
|
||||
continue;
|
||||
}
|
||||
|
||||
tab.owner = null;
|
||||
if (container) {
|
||||
if (tab.group?.hasAttribute('split-view-group')) {
|
||||
gBrowser.zenHandleTabMove(tab.group, () => {
|
||||
@@ -2751,14 +2752,12 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
|
||||
|
||||
getTabsToExclude(aTab) {
|
||||
const tabWorkspaceId = aTab.getAttribute('zen-workspace-id');
|
||||
const containerId = aTab.getAttribute('usercontextid') ?? '0';
|
||||
// Return all tabs that are not on the same workspace
|
||||
return this.allStoredTabs.filter(
|
||||
(tab) =>
|
||||
tab.getAttribute('zen-workspace-id') !== tabWorkspaceId &&
|
||||
!(
|
||||
this.containerSpecificEssentials &&
|
||||
tab.getAttribute('container') !== aTab.getAttribute('container')
|
||||
) &&
|
||||
!this._shouldShowTab(tab, tabWorkspaceId, containerId, this._workspaceCache) &&
|
||||
!tab.hasAttribute('zen-empty-tab')
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user