Skip to content

Conversation

@Vedaant-Rajoo
Copy link
Contributor

Fixes #9389

Persists favicon data for pinned tabs by storing base64 data URIs in the database. This ensures favicons are preserved across browser restarts and workspace changes.

Changes:

  • Add icon_data column to store favicon data URIs
  • Capture and save favicons when tabs are pinned
  • Update stored favicons when tab icons change
  • Lazy migration for existing pins without favicons
  • Enhanced favicon fetching with network fallback when Places cache is unavailable
  • Restore favicons from storage when pins are loaded

Migration:
Existing pinned tabs without favicons are automatically migrated in the background after initialization, prioritizing essential pins.

Improves pinned tab handling so favicon data is stored and reused

Adds DB column for icon data and prefers saved icons over recomputing

Introduces lazy migration and async capture to backfill missing favicons

Adds temporary debug logging to trace favicon load and storage paths
Removes verbose debug logging around pinned tab favicon handling
Uses stored data URIs directly for original icon styling
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Bug labels Nov 19, 2025
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Nov 22, 2025
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Nov 22, 2025
@Vedaant-Rajoo
Copy link
Contributor Author

There are a lot of ways to reproduce the issue #9389. @mr-cheffy but I'm not too sure if the way i went about fixing it is the best solution. If you have any qualms about it. Let me know. I know a lot of people are waiting for this bug to get fixed.

@mr-cheffy
Copy link
Member

I dont think this is the best way to tackle the issue tbh, but anyways, we are removing this implementation with window sync. #10034

@mr-cheffy mr-cheffy closed this Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pinned tabs and essential tabs icons disappears when the tab is closed

2 participants