tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 80aeb4d9892253de1e227ce1810398b73885e046
parent cd7748b0ac4dff025ad0e4a3936e8c2a6d0e8b76
Author: Kelly Cochrane <kcochrane@mozilla.com>
Date:   Thu, 11 Dec 2025 19:38:53 +0000

Bug 2005060 - Ensure selected panel index stays up to date in case split view splitter offsets it r=jsudiaman

Differential Revision: https://phabricator.services.mozilla.com/D276053

Diffstat:
Mtoolkit/content/widgets/tabbox.js | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/toolkit/content/widgets/tabbox.js b/toolkit/content/widgets/tabbox.js @@ -415,11 +415,16 @@ set #isSplitViewActive(isActive) { this.toggleAttribute("splitview", isActive); this.splitViewSplitter.hidden = !isActive; + const selectedPanel = this.selectedPanel; if (isActive) { // Place splitter after first panel, so that it can be resized. const firstPanel = document.getElementById(this.splitViewPanels[0]); firstPanel?.after(this.#splitViewSplitter); } + + // Ensure that selected index stays up to date, in case the splitter + // offsets it. + this.selectedPanel = selectedPanel; } }