Skip to content

gh-14448: fix glance tabs not getting pinned with zen.folders.owned-tabs-in-folder on#14449

Open
ashvwinn wants to merge 6 commits into
zen-browser:devfrom
ashvwinn:fix/glance-folder-pin
Open

gh-14448: fix glance tabs not getting pinned with zen.folders.owned-tabs-in-folder on#14449
ashvwinn wants to merge 6 commits into
zen-browser:devfrom
ashvwinn:fix/glance-folder-pin

Conversation

@ashvwinn

@ashvwinn ashvwinn commented Jul 2, 2026

Copy link
Copy Markdown
Member

fixes: #14448
regression from #14431

@ashvwinn ashvwinn requested a review from mr-cheffy as a code owner July 2, 2026 10:47
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. Bug labels Jul 2, 2026
@ashvwinn

ashvwinn commented Jul 2, 2026

Copy link
Copy Markdown
Member Author

why do we even have these two functions separate btw? can't they be just merged into one. they do the same thing

@ashvwinn ashvwinn changed the title gh-14448: fix regression from #14431 gh-14448: fix glance tabs not getting pinned with zen.folders.owned-tabs-in-folder on Jul 2, 2026
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Jul 2, 2026
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Jul 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes a regression where expanding/splitting a Glance tab does not correctly apply Zen Folder “owned tabs in folder” behavior when zen.folders.owned-tabs-in-folder is enabled.

Changes:

  • Refactors fullyOpenGlance() to snapshot currentTab/currentParentTab before closing the glance entry, then applies pinning and tab reordering afterward.
  • Consolidates folder pinning logic into a single helper and removes the split-only pinning helper.
  • Adjusts animation/flag sequencing so animatingFullOpen is cleared at the end of the full-open flow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/zen/glance/ZenGlanceManager.mjs
Comment on lines 1640 to +1644
this.finishOpeningGlance();
this.#handleZenFolderPinning(currentTab, currentParentTab);
gBrowser.moveTabAfter(currentTab, currentParentTab);

if (!forSplit && !gReduceMotion) {

@ashvwinn ashvwinn Jul 5, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

mr-boost-guy-disgust-new-new-new

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unintended glance tab behaviour when zen.folders.owned-tabs-in-folder is turned on

2 participants