Closed Bug 1821701 Opened 2 years ago Closed 1 year ago

Homepage favicons improvements

Categories

(Fenix :: Homepage, enhancement, P2)

All
Android
enhancement

Tracking

(firefox120 verified, firefox121 verified)

VERIFIED FIXED
121 Branch
Tracking Status
firefox120 --- verified
firefox121 --- verified

People

(Reporter: jmahon, Assigned: towhite)

References

(Depends on 2 open bugs, Blocks 2 open bugs)

Details

(Whiteboard: [needs-ux] [fxdroid])

Attachments

(8 files)

"Less janky homepage" - favicons improvements:

originally requested here.

  • Sometimes, favicons and images that were present before are missing and then get reloaded or images are replaced by similar but different images.
  • Generic favicons - often mostly the same color and sometimes the letter doesn’t match the title. Sometimes used when a favicon exists.
  • Should also look into the color selection algorithm to make sure we're spreading colors out evenly across placeholder icons, rather than 'randomly' (meaning: would be nice to avoid duplicating colors)

(JM note: it's possible we're misunderstanding what populates the 'letter' placeholder - e.g., is it the domain URL or the page title? Please confirm expectations before trying to change that one.)

Tasks should have Severity N/A.

Severity: S4 → N/A
Priority: P3 → P2
Severity: N/A → S4
Severity: S4 → N/A
Whiteboard: [fxdroid]
Assignee: nobody → towhite

I'm unable to reproduce any 'janky' fav icon behaviour with the Compose Top Sites. The main offender appears to be 'Jump back in' card image, which is being worked on here. Noticed the pocket Stories can sometimes take a moment to load too, but I'm unsure exactly which fav icons this bug pertains too, if UX could provide more context to this it'd be appreciated, thanks!

Whiteboard: [fxdroid] → [needs-ux] [fxdroid]

Joe is this describing a similar/or same problem as this meta bug https://bugzilla.mozilla.org/show_bug.cgi?id=1842103?

Flags: needinfo?(jmahon)

Hmm it looks like there's a variety of things that are interwoven here, yeah, but I hesitate to say that it's fully duplicate. I'll index this under that meta, as well just for safekeeping.

In terms of reproduction, Verdi would be the person to double check any of this with, he has a better understanding of the original issues that were reported and captured here.

Blocks: 1842103
Flags: needinfo?(jmahon)

In terms of reproduction, Verdi would be the person to double check any of this with, >he has a better understanding of the original issues that were reported and captured >here.

I'm not sure about the missing or changing favicons - haven't noticed this lately. But here's a screenshot from today of 6 generic favicons with 4 of them being nearly identical green.

:verdi thanks the the update. I believe this issue should now be fixed as part of https://bugzilla.mozilla.org/show_bug.cgi?id=1848605. I am not able to reproduce the icon state you have in the screenshot, could you please check if you still see the placeholder favicons please?

Flags: needinfo?(mverdi)
Status: NEW → ASSIGNED

I still have placeholder icons for some sites. I tried removing and replacing the shortcuts, it didn't help. When I launch Fenix, reuters.com/world and telegraph.co.uk always lose their favicons. Today's Nightly, Compose Top Sites is enabled.

Thank you for the update :Mark. I can now reproduce this particular issue on Nightly by closing and re-opening a couple of times.
Update: The issue is actually closing the related tab

I believe the main cause of the 'template' favicons is due to the TippyToppy defined image_urls referencing SVG files which cannot be decoded by AndroidImageDecoder

This is Nightly 121.0a1 (Build 2015982114) with compose top sites and compose tab tray turned on.

I've got 4 pink icons for 2 different urls. The screenshot in Jump Back In is for the Vox tab but the name and URL is for the support article.

Flags: needinfo?(mverdi)
See Also: → 1862251
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Flags: qe-verify+
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Depends on: 1863717

This ticket partially fixes:

Sometimes, favicons and images that were present before are missing and then get reloaded or images are replaced by similar but different images.

As there are a number of issues still at play here, I've broken this issue out to the following issues:

I've got 4 pink icons for 2 different urls.

https://bugzilla.mozilla.org/show_bug.cgi?id=1863717

The screenshot in Jump Back In is for the Vox tab but the name and URL is for the support article.

I believe this is covered by https://bugzilla.mozilla.org/show_bug.cgi?id=1844750

Should also look into the color selection algorithm to make sure we're spreading colors out evenly across placeholder icons, rather than 'randomly' (meaning: would be nice to avoid duplicating colors)

https://bugzilla.mozilla.org/show_bug.cgi?id=1863720

Blocks: 1844750
No longer blocks: 1844750
Depends on: 1844750
Depends on: 1863720
Attached image 1821701.png

Verified on the latest Fenix Nightly 121.0a1 from 11/10 with Google Pixel 6 (Android 14), and Oppo Find N2 Flip (Android 13).
The top sites & shortcuts icons are displayed with different colors, and are displayed centered. The favicons and images that were present before are displayed, and aren't
replaced by similar images.

Status: RESOLVED → VERIFIED
Flags: qe-verify+

Nominating this as a potential patch to uplift to 120. :jmahon wdyt?

Flags: needinfo?(jmahon)

Thanks so much for digging through this and separating it out into different pieces, Tom.

Just to make sure I understand correctly:

  • FIXED - disappearing/inconsistent favicons - this bug
  • To Do - duplicate placeholder colors - Bug 1863720
  • To Do - "Jump back in" and "Recently loaded" images are empty or incorrect - Bug 1844750
  • To Do - Favicon 'letter' placeholder is wonky - Bug 1863717

Is that accurate? If so, sure, this can be uplifted. I just want make sure it's clear what we're actually fixing with this uplift.

Flags: needinfo?(jmahon) → needinfo?(towhite)

No probs, thanks!

Yes, your summary above is accurate 👌

Flags: needinfo?(towhite)

Comment on attachment 9363461 [details] [review]
[mozilla-mobile/firefox-android] Bug 1821701 - Added SVG decoding for favicons. (backport #4166) (#4469)

Beta/Release Uplift Approval Request

  • User impact if declined: Some Homepage icons may appear buggy e.g. appear and disappear
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Verified in Nightly, uses a robust third party library for the heavy work
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9363461 - Flags: approval-mozilla-beta?
Comment on attachment 9363461 [details] [review] [mozilla-mobile/firefox-android] Bug 1821701 - Added SVG decoding for favicons. (backport #4166) (#4469) We are out of betas, but can consider this for an RC Mobile respin or a 120 dot release.
Attachment #9363461 - Flags: approval-mozilla-beta? → approval-mozilla-release?
Comment on attachment 9363461 [details] [review] [mozilla-mobile/firefox-android] Bug 1821701 - Added SVG decoding for favicons. (backport #4166) (#4469) Approved for Mobile 120.0rc2
Attachment #9363461 - Flags: approval-mozilla-release? → approval-mozilla-release+
Status: VERIFIED → RESOLVED
Closed: 1 year ago1 year ago
Flags: qe-verify+

Verified on Firefox 120.0.RC2 with Samsung Galaxy A32 (Android 12), and Motorola 9 Plus (Android 11).
The top sites & shortcuts icons are displayed with different colors, centered. The favicons and images that were present before are still displayed, and aren't replaced by similar images.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Regressions: 1865591
Regressions: 1874522
Regressions: 1864557
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: