commit 6d4fb372d04c6c8a916e3ff0b847b0c8960e3c31
parent 3b4160acedbe1750e7e8d693ee2a45239c8f5fba
Author: Kelly Cochrane <kcochrane@mozilla.com>
Date: Tue, 9 Dec 2025 16:12:06 +0000
Bug 2003991 - Ensure split view panels are shown when adding a split view to a new or existing tab group r=tabbrowser-reviewers,jsudiaman
Differential Revision: https://phabricator.services.mozilla.com/D275469
Diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/browser/components/tabbrowser/content/tabsplitview.js b/browser/components/tabbrowser/content/tabsplitview.js
@@ -39,6 +39,9 @@
/** @type {MozTabbrowserTab[]} */
#tabs = [];
+ /** @type {boolean} */
+ #activated = false;
+
/**
* @returns {boolean}
*/
@@ -145,14 +148,18 @@
* Show all Split View tabs in the content area.
*/
#activate() {
- gBrowser.showSplitViewPanels(this.#tabs);
updateUrlbarButton.arm();
+ if (this.#activated) {
+ return;
+ }
+ gBrowser.showSplitViewPanels(this.#tabs);
this.container.dispatchEvent(
new CustomEvent("TabSplitViewActivate", {
detail: { tabs: this.#tabs, splitview: this },
bubbles: true,
})
);
+ this.#activated = true;
}
/**
@@ -167,6 +174,7 @@
bubbles: true,
})
);
+ this.#activated = false;
}
/**