Skip to content

Fix: Pinned tab state and favicon handling#2853

Merged
mr-cheffy merged 1 commit intozen-browser:devfrom
kristijanribaric:fix/ensure-pinned-tabs-keep-icon-after-discard
Nov 11, 2024
Merged

Fix: Pinned tab state and favicon handling#2853
mr-cheffy merged 1 commit intozen-browser:devfrom
kristijanribaric:fix/ensure-pinned-tabs-keep-icon-after-discard

Conversation

@kristijanribaric
Copy link
Member

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.

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.
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Improvement labels Nov 10, 2024
Copy link
Member

@mr-cheffy mr-cheffy left a comment

Choose a reason for hiding this comment

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

Thanks!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 11, 2024
@mr-cheffy mr-cheffy merged commit 8724d6f into zen-browser:dev Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement 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.

2 participants