commit 2c5b2edda0222785629996b6edea001225d6e1d9
parent e85f232074024db458759d51f8357a74fc9cfe33
Author: Kelly Cochrane <kcochrane@mozilla.com>
Date: Tue, 9 Dec 2025 14:23:42 +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, 8 insertions(+), 0 deletions(-)
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,6 +148,9 @@
* Show all Split View tabs in the content area.
*/
#activate() {
+ if (this.#activated) {
+ return;
+ }
gBrowser.showSplitViewPanels(this.#tabs);
updateUrlbarButton.arm();
this.container.dispatchEvent(
@@ -153,6 +159,7 @@
bubbles: true,
})
);
+ this.#activated = true;
}
/**
@@ -167,6 +174,7 @@
bubbles: true,
})
);
+ this.#activated = false;
}
/**