mirror of
https://github.com/zen-browser/desktop.git
synced 2026-07-30 20:07:48 +00:00
gh-14726: Fix essential tab reordering at maximum capacity (gh-14729)
This commit is contained in:
@@ -1019,12 +1019,15 @@ class nsZenPinnedTabManager extends nsZenDOMOperatedFeature {
|
||||
}
|
||||
|
||||
canEssentialBeAdded(tab) {
|
||||
const isExistingEssentialTab = tab.hasAttribute("zen-essential");
|
||||
return (
|
||||
!(
|
||||
(tab.getAttribute("usercontextid") || 0) !=
|
||||
(gZenWorkspaces.getActiveWorkspaceFromCache().containerTabId || 0) &&
|
||||
gZenWorkspaces.containerSpecificEssentials
|
||||
) && gBrowser._numZenEssentials < this.maxEssentialTabs
|
||||
) &&
|
||||
(isExistingEssentialTab ||
|
||||
gBrowser._numZenEssentials < this.maxEssentialTabs)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user