Skip to content

Commit

Permalink
Attach child tab to the opener tab correctly even if the opener had n…
Browse files Browse the repository at this point in the history
…o child and "when a tab is opened from existing tab, open it as: a child of the parent tab, next to the recently opened child" is chosen
  • Loading branch information
piroor committed Jul 20, 2023
1 parent 74e682e commit 3f32bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webextensions/background/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ export async function behaveAutoAttachedTab(
const lastRelatedTab = baseTab.$TST.lastRelatedTab;
if (lastRelatedTab) {
log(` place after last related tab ${dumpTab(lastRelatedTab)}`);
return TabsMove.moveTabAfter(tab, lastRelatedTab.$TST.lastDescendant || lastRelatedTab, {
await TabsMove.moveTabAfter(tab, lastRelatedTab.$TST.lastDescendant || lastRelatedTab, {
delayedMove: true,
broadcast: true
});
Expand Down

0 comments on commit 3f32bdc

Please sign in to comment.