gh-12841: Fixed creating an unexpected folder in a second window when a new space is created (gh-12857)

This commit is contained in:
mr. m
2026-03-20 16:56:06 +01:00
committed by GitHub
parent 70e0adcdcb
commit 5fb931daad
3 changed files with 10 additions and 4 deletions

View File

@@ -1495,6 +1495,12 @@ class nsZenWindowSync {
on_TabGroupCreate(aEvent) {
const tabGroup = aEvent.target;
// See gh-12841, when creating a new space, the tab group create
// event is fired for the zen-workspace-collapsible-pins element, but
// its not something we want to sync across windows, so we can just ignore it.
if (tabGroup.tagName === "zen-workspace-collapsible-pins") {
return;
}
if (tabGroup.id && tabGroup.alreadySynced) {
// This tab group was opened as part of a sync operation.
return;