feat: Allow pinned tabs to be collapsible, p=#11753, c=tabs, folders, workspaces

* fix: Fixed restoring the previous pinned state clearing up the custom icon, b=no-bug, c=tabs

* feat: Allow pinned tabs to be collapsible, b=no-bug, c=tabs, folders, workspaces

* fix: Fixed new folder context menu item not working, b=no-bug, c=common, folders
This commit is contained in:
mr. m
2025-12-28 17:58:18 +01:00
committed by GitHub
parent 1338b43e10
commit b66b05dcf6
20 changed files with 299 additions and 99 deletions

View File

@@ -322,11 +322,14 @@ class nsZenPinnedTabManager extends nsZenDOMOperatedFeature {
const state = this.#getTabState(tab);
const initialState = tab._zenPinnedInitialState;
if (!initialState?.entry) {
return;
}
// Remove everything except the entry we want to keep
state.entries = [initialState.entry];
state.image = initialState.image;
state.image = tab.zenStaticIcon || initialState.image;
state.index = 0;
SessionStore.setTabState(tab, state);