Bug 1962592 - Reduce tab moves in adoptTabGroup r=tabbrowser-reviewers,dao

Differential Revision: https://phabricator.services.mozilla.com/D246702
This commit is contained in:
Rob Wu
2025-04-25 13:44:46 +00:00
parent 6899ed5a68
commit 6521fc35e2
2 changed files with 88 additions and 0 deletions

View File

@@ -3155,6 +3155,7 @@
let newTabs = [];
for (let tab of group.tabs) {
newTabs.push(this.adoptTab(tab, { elementIndex }));
++elementIndex;
}
return this.addTabGroup(newTabs, {