mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
fix: Test test_Split_View_Inside_Folder (#9902)
* fix: Test `test_Split_View_Inside_Folder` * fix: Extra `ungroupTab` call
This commit is contained in:
@@ -303,7 +303,7 @@ index d80a66a01002e78a9c65545d08fe786328ddf124..50ff735a4621110ff3691186139cabf7
|
||||
+ }
|
||||
+ group.essential = tabs.some(tab => tab.hasAttribute("essential"));
|
||||
+ group.pinned = group.essential || tabs.some(tab => tab.pinned);
|
||||
+ if (forSplitView) insertBefore = insertBefore.group ?? insertBefore;
|
||||
+ if (forSplitView && !insertBefore?.group?.isZenFolder) insertBefore = insertBefore?.group ?? insertBefore;
|
||||
+ insertBefore.before(
|
||||
group,
|
||||
- insertBefore?.group ?? insertBefore
|
||||
|
@@ -200,9 +200,6 @@ class nsZenViewSplitter extends nsZenDOMOperatedFeature {
|
||||
// We need to remove all remaining tabs from the group when unsplitting
|
||||
let remainingTabs = [...group.tabs]; // Copy array since we'll modify it
|
||||
for (let remainingTab of remainingTabs) {
|
||||
if (remainingTab.group && remainingTab.group.hasAttribute('split-view-group')) {
|
||||
gBrowser.ungroupTab(remainingTab);
|
||||
}
|
||||
this.resetTabState(remainingTab, forUnsplit);
|
||||
}
|
||||
this.removeGroup(groupIndex);
|
||||
|
Reference in New Issue
Block a user