diff --git a/src/browser/base/zen-components/ZenPinnedTabManager.mjs b/src/browser/base/zen-components/ZenPinnedTabManager.mjs index a6d36c327..18794d8e0 100644 --- a/src/browser/base/zen-components/ZenPinnedTabManager.mjs +++ b/src/browser/base/zen-components/ZenPinnedTabManager.mjs @@ -376,6 +376,9 @@ for (let i = 0; i < tabs.length; i++) { const tab = tabs[i]; tab.setAttribute("zen-essential", "true"); + if(tab.hasAttribute("zen-workspace-id")) { + tab.removeAttribute("zen-workspace-id"); + } if (tab.pinned) { gBrowser.unpinTab(tab); } @@ -388,6 +391,9 @@ for (let i = 0; i < tabs.length; i++) { const tab = tabs[i]; tab.removeAttribute("zen-essential"); + if(ZenWorkspaces.workspaceEnabled && ZenWorkspaces.getActiveWorkspaceFromCache.uuid) { + tab.setAttribute("zen-workspace-id", ZenWorkspaces.getActiveWorkspaceFromCache.uuid); + } gBrowser.unpinTab(tab); } } @@ -407,13 +413,17 @@ document.getElementById('tabContextMenu').appendChild(elements); const element = window.MozXULElement.parseXULToFragment(` -