Skip to content

Conversation

@yureitzk
Copy link

Fixes a bug where the legacy favicon is not displayed in Firefox.

The issue stems from Firefox’s FaviconLoader.sys.mjs module, which automatically fetches favicons (favicon-16x16.png and android-icon-192x192.png). It appears to be a race condition between the browser module and the RES extension, preventing the legacy favicon from being persistently loaded.

FaviconLoader.sys.mjs in action

My workaround for this: an event listener that sets the href attribute of the link, forcing Firefox to use the correct favicon instead of the one fetched by FaviconLoader.sys.mjs.

Relevant issues: #5551, https://www.reddit.com/r/RESissues/comments/1k3zcoh/use_legacy_favicon_only_works_sometimes_firefox/
Tested in browser: Firefox 130

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant