You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Re-implement favicon support on MV3 dev (resolves stale PR merge conflict)
The original favicon PR (Authenticator-Extension#1118) targeted an MV2 base and had been open ~2
years; dev is now MV3 and the branch no longer merges. This re-implements
the feature against current dev conventions and fixes the original bugs:
- Built for MV3: uses the favicon permission + the chrome.runtime.getURL
('/_favicon/') endpoint instead of the dead MV2 chrome://favicon/ URL.
Only the 'favicon' optional permission is requested (on toggle); the
invalid MV2 'chrome://favicon/' host permission and CSP scheme are dropped.
The extension's own _favicon resource is already covered by img-src 'self',
so no CSP relaxation is needed.
- EntryComponent.shouldShowFavicon is a proper reactive computed returning
!isFirefox && !isSafari && menu.showFavicon (uses browser.ts constants),
fixing the original && short-circuit bug that discarded the guard.
- Wires showFavicon into the new UserSettings model (interface, BooleanOption,
isBooleanOption) and the menu store, so the setting persists and syncs.
- Favicons are fetched lazily per entry at render time; nothing bundled or
pre-downloaded. medal.svg is a UI placeholder glyph, not a site favicon.
Maintainer constraints honored: no mandatory permissions added, no pre-installed
or pre-downloaded favicons.
0 commit comments