Fixed tab context menu not working when changing tab to a different workspace (closes https://github.com/zen-browser/desktop/issues/2963)

This commit is contained in:
mr. M
2024-12-22 00:50:01 +01:00
parent 1f2b08f870
commit 1e927834b3

View File

@@ -1601,6 +1601,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
async changeTabWorkspace(workspaceID) {
const tabs = TabContextMenu.contextTab.multiselected ? gBrowser.selectedTabs : [TabContextMenu.contextTab];
document.getElementById('tabContextMenu').hidePopup();
const previousWorkspaceID = document.documentElement.getAttribute('zen-workspace-id');
for (let tab of tabs) {
tab.setAttribute('zen-workspace-id', workspaceID);