Commit Graph

65 Commits

Author SHA1 Message Date
kristijanribaric
8724d6f836 Fix pinned tab state and favicon handling (#2853)
Fixes several issues related to pinned tab restoration and
favicon display:

- Ensures pinned tabs are not loaded in private windows.
- Improves favicon caching and setting for pinned tabs.
- Fixes an issue where the tab state was not properly
  restored, leading to incorrect icons and titles.
- Uses base64 encoded favicon data to prevent issues with
  favicon loading and updates the favicon loading logic to
  be more robust.
- Adds a call to `gBrowser._updateTabBarForPinnedTabs` to
  ensure the tab bar is updated correctly after restoring
  pinned tabs, which fixes a UI issue where the tab bar
  wouldn't refresh properly until interacted with.
- Improves tab initialization by explicitly calling
  `newTab.initialize()` after restoring a pinned tab. This
  fixes an issue with tabs not rendering
  icon and label after being restored.

The changes improve the reliability of pinned tab
restoration and ensure that favicons are displayed
correctly.
2024-11-11 20:48:27 +01:00
Kristijan Ribarić
2798076bb1 Display Add to Essentials tab context menu item before Pin Tab
Add to Essentials is displayed before Pin tab context menu item so it follows the order in which the tabs are displayed in the sidebar as essentials are above pinned tabs.
2024-11-11 08:59:15 +01:00
mr. M
47fdeada01 Fix enabled property check in ZenPinnedTabManager for improved reliability 2024-11-10 18:54:46 +01:00
mr. M
c3fc7d792e Refactor Zen tab management to improve performance and enable conditional functionality 2024-11-10 18:50:10 +01:00
mr. M
d7a48bd855 refactor: Remove redundant tab refresh during initialization and streamline workspace startup process 2024-11-08 20:07:02 +01:00
mr. M
f093228f71 feat: Update new tab button preferences and improve workspace indicator styles 2024-11-08 19:34:51 +01:00
Kristijan Ribarić
014602266b Correctly set the base pinned url and title for migrating from previous version. 2024-11-07 16:20:46 +01:00
Kristijan Ribarić
696a2148f0 (fix) Migrate pinned tabs from older Zen versions
If there are no pinned tabs in the database on startup,
assume it's a migration from an older version and save all
currently pinned tabs to the database.  Previously, Zen
would remove any pinned tabs that didn't have a `zen-pin-id`
attribute, which would occur during migration. This change
ensures that pinned tabs are preserved during upgrades.
2024-11-07 11:40:44 +01:00
mr. M
6d5dcbe89f Adjust tab height calculations and improve icon state handling in ZenStartup and ZenPinnedTabManager 2024-11-06 20:31:20 +01:00
mr. M
a2ca9361e1 Refactor toolbar background handling and improve tab styling in compact mode 2024-11-06 19:46:21 +01:00
Kristijan Ribarić
adfcaa2f09 feat: Add new icons for essentials context items
Updted context menu item showing logic
2024-11-05 15:08:36 +01:00
Kristijan Ribarić
7ae2d6d5bb Fix: Parse user context ID correctly when pinning tabs
This commit fixes an issue where the user context ID was not being parsed correctly when pinning tabs.

Previously, the user context ID was being stored as a string, which could lead to unexpected behavior. This commit ensures that the user context ID is parsed as an integer, which is the correct data type.

This change will ensure that pinned tabs are stored and retrieved correctly.
2024-11-05 08:06:54 +01:00
Kristijan Ribarić
bf0342eb06 Ensure that when adding an essential it is saved correctly in the database. 2024-11-04 22:24:40 +01:00
mr. M
649d82425a Added zen essentials! 2024-11-04 19:34:32 +01:00
mr. M
ec65a69496 Translated files to a single monorepo 2024-11-04 17:37:02 +01:00