gh-12989: Make split command use context tabs (gh-12990)

This commit is contained in:
mr. m
2026-03-29 18:59:15 +02:00
committed by GitHub
parent 8fec3702f4
commit 595f236a7a

View File

@@ -1237,7 +1237,12 @@ class nsZenViewSplitter extends nsZenDOMOperatedFeature {
* Splits the selected tabs.
*/
contextSplitTabs() {
const tabs = window.gBrowser.selectedTabs;
let tabs;
if (TabContextMenu.contextTab.multiselected) {
tabs = gBrowser.selectedTabs;
} else {
tabs = [TabContextMenu.contextTab];
}
// If any is already in a split view, we unsplit them first
if (tabs.some(tab => tab.splitView)) {
for (const tab of tabs) {