Skip to content

gh-8309: Fix moving essential tabs to new window - #14144

Open
wieli99 wants to merge 2 commits into
zen-browser:devfrom
wieli99:fix-essential-tabs-new-window
Open

gh-8309: Fix moving essential tabs to new window#14144
wieli99 wants to merge 2 commits into
zen-browser:devfrom
wieli99:fix-essential-tabs-new-window

Conversation

@wieli99

@wieli99 wieli99 commented Jun 12, 2026

Copy link
Copy Markdown

Fixes #8309.

updates the move-to-new-window behavior for Essential tabs. For normal user moves, keeps the original Essential tab in place and opens a regular copy in the new window.

I also added coverage for the related edge cases that came up while testing this path.

@wieli99
wieli99 requested a review from mr-cheffy as a code owner June 12, 2026 10:08
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jun 12, 2026
@mr-cheffy

Copy link
Copy Markdown
Member

There seems to be git conflicts, could you please fix it?

@wieli99
wieli99 force-pushed the fix-essential-tabs-new-window branch from 0e00aca to 6785236 Compare June 12, 2026 10:35
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Jun 12, 2026
@wieli99

wieli99 commented Jun 12, 2026

Copy link
Copy Markdown
Author

Whoops, yeah should be fixed now :)

@mr-cheffy

Copy link
Copy Markdown
Member

Hi, could you please fix the git issues again? Sorry about that.

@wieli99
wieli99 force-pushed the fix-essential-tabs-new-window branch from 6785236 to c9678e7 Compare June 15, 2026 17:34
@wieli99

wieli99 commented Jun 15, 2026

Copy link
Copy Markdown
Author

No worries. Should be ready to merge again.

@wieli99
wieli99 force-pushed the fix-essential-tabs-new-window branch from c9678e7 to f6f4792 Compare June 19, 2026 07:16
@wieli99

wieli99 commented Jun 19, 2026

Copy link
Copy Markdown
Author

I fixed the conflicts again. Is there anything else you need from me to merge this @mr-cheffy ?

@mr-cheffy mr-cheffy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why's there 2 different normalizeDuplicatedEssentialTab going on? What does each branch do

@wieli99

wieli99 commented Jun 22, 2026

Copy link
Copy Markdown
Author

They were doing the same thing in the single-tab and multi-tab paths. I moved that into one shared helper and also made both paths wait for SSTabRestored before moving the duplicate. Added tests fr it too.

Comment thread src/browser/components/tabbrowser/content/tabbrowser-js.patch Outdated
Comment thread src/browser/components/tabbrowser/content/tabbrowser-js.patch Outdated
@wieli99
wieli99 force-pushed the fix-essential-tabs-new-window branch from 7d8b82a to a951ad5 Compare June 25, 2026 07:11
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Jun 25, 2026
@wieli99
wieli99 force-pushed the fix-essential-tabs-new-window branch from a951ad5 to e7cdb4e Compare June 25, 2026 07:27
@wieli99
wieli99 requested a review from mr-cheffy June 25, 2026 07:42
@wieli99

wieli99 commented Jul 1, 2026

Copy link
Copy Markdown
Author

Since dev keeps moving and this PR has picked up conflicts a few times now, I’m going to hold off on rebasing again until you’re ready to take another look @mr-cheffy .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Moving Essential Tab to New Window removes it from Essentials

2 participants