Skip to content

feat: Added 'unload all other spaces' option in spaces context menu#12751

Merged
mr-cheffy merged 5 commits into
zen-browser:devfrom
AfeefurR:unload-other-spaces
Mar 14, 2026
Merged

feat: Added 'unload all other spaces' option in spaces context menu#12751
mr-cheffy merged 5 commits into
zen-browser:devfrom
AfeefurR:unload-other-spaces

Conversation

@AfeefurR
Copy link
Copy Markdown
Contributor

Screenshot 2026-03-12 at 11 16 32 PM

Clicking 'Unload All Other Spaces' will unload every space except the space on which the context menu was triggered. Basically the same thing as unloading every space (except one) individually

Why?

When I know that I will work in one space exclusively for a while, I typically unload every other space to manually free memory. It gets tedious when doing it for 6-10 spaces, so I thought this might be useful.

@AfeefurR AfeefurR requested a review from mr-cheffy as a code owner March 12, 2026 19:25
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. Feature labels Mar 12, 2026
Comment thread src/browser/base/content/zen-panels/popups.inc Outdated

this.log("Unloading all workspaces except", workspaceId);

await gBrowser.explicitUnloadTabs(tabsToUnload); // TODO: unit test this
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.

I'd like tests for this if you don't mind.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll get working on it!

@AfeefurR AfeefurR force-pushed the unload-other-spaces branch from e72098f to 1ddb0ea Compare March 13, 2026 15:47
@mr-cheffy
Copy link
Copy Markdown
Member

Could you also please fix these?
CleanShot 2026-03-13 at 17 36 29@2x

@AfeefurR AfeefurR force-pushed the unload-other-spaces branch from 0b44b24 to 539c2f9 Compare March 13, 2026 17:36
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Mar 14, 2026
@mr-cheffy mr-cheffy requested a review from Copilot March 14, 2026 09:10

This comment was marked as resolved.

@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 Mar 14, 2026
@mr-cheffy mr-cheffy merged commit 7dbe5b4 into zen-browser:dev Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants