Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Pinned tab state and favicon handling #2853

Conversation

kristijanribaric
Copy link
Contributor

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-cheff mr-cheff 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-cheff mr-cheff merged commit 8724d6f into zen-browser:dev Nov 11, 2024
1 check passed
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