Skip to content

fix favicon on Firefox for Android#7461

Merged
escattone merged 1 commit into
mozilla:mainfrom
escattone:favicon-fenix-2889
May 6, 2026
Merged

fix favicon on Firefox for Android#7461
escattone merged 1 commit into
mozilla:mainfrom
escattone:favicon-fenix-2889

Conversation

@escattone
Copy link
Copy Markdown
Contributor

@escattone escattone commented May 4, 2026

mozilla/sumo#2889

This is another attempt to fix the favicon for SUMO on Firefox for Android. It also ensures that all of our favicons are the same and satisfy the brand guidelines.

Rationale

The previous markup gave Fenix two broken candidates:

  1. An ICO file (type="image/x-icon") — Fenix's icon parser de-prioritizes ICO on Android, so it tended to skip it.
  2. A PNG declared as 192×192 that was actually 196×196 — Fenix uses the declared sizes to rank candidates, and the size mismatch likely caused it to drop the candidate.

With both candidates failing, Fenix had nothing to display.

The fix:

  • added an SVG favicon (Fenix prefers SVG since v90, no size or decoder issues)
  • replaced the mismatched PNG with properly-sized 16×16 and 32×32 PNGs
  • demoted the ICO to a shortcut icon legacy fallback
  • added a 192×192 manifest entry for speed dial.

Now Fenix has a clean primary candidate and consistent fallbacks.

Caveat: Fenix caches favicons aggressively, so post-deploy verification should use a fresh profile or cleared site data.

@escattone escattone requested a review from akatsoulas May 4, 2026 19:24
@escattone escattone changed the title another attempt to fix favicon on fenix fix favicon on Firefox for Android May 4, 2026
Comment thread kitsune/sumo/views.py
# This is using our JS-style string formatting.
response[locale] = {
"suggestion": _("Would you like to view this page in " "%(language)s instead?"),
"suggestion": _("Would you like to view this page in %(language)s instead?"),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This introduces a bit of scope creep. The change is subtle so probably is OK this time but we should avoid this

Comment thread kitsune/sumo/views.py
"""A wrapper around django.views.static.serve that adds CORS headers."""
if not settings.DEBUG:
raise RuntimeError("Don't use kitsune.sumo.views.serve_cors " "in production.")
raise RuntimeError("Don't use kitsune.sumo.views.serve_cors in production.")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Similar comment with the previous

@escattone escattone merged commit 6f8ee35 into mozilla:main May 6, 2026
6 checks passed
@escattone escattone deleted the favicon-fenix-2889 branch May 6, 2026 16:07
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.

2 participants