gh-13761: Fixed closing a split view selecting it on other windows (gh-13790)

This commit is contained in:
mr. m
2026-05-21 18:18:18 +02:00
committed by GitHub
parent 0b9f0bbe91
commit cd1616d1c0
4 changed files with 8 additions and 6 deletions

View File

@@ -1657,7 +1657,9 @@ class nsZenWindowSync {
this.#runOnAllWindows(window, win => {
const targetTab = this.getItemFromWindow(win, tab.id);
if (targetTab && win.gZenViewSplitter) {
win.gZenViewSplitter.removeTabFromGroup(targetTab);
win.gZenViewSplitter.removeTabFromGroup(targetTab, undefined, {
changeTab: false,
});
}
});
}

View File

@@ -2294,7 +2294,7 @@ class nsZenViewSplitter extends nsZenDOMOperatedFeature {
// Unsplit the tab and exit from the drag view
this.dropZone?.removeAttribute("enabled");
this.disableTabRearrangeView(event);
this.removeTabFromSplit(browserContainer);
this.removeTabFromSplit(event, browserContainer);
return true;
}
return false;