Closed Bug 1844150 Opened 1 year ago Closed 1 year ago

Firefox suggest uses generic favicon with wrong color-scheme.

Categories

(Firefox :: Address Bar, defect, P3)

defect

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: emilio, Assigned: mak)

References

(Blocks 1 open bug)

Details

Attachments

(4 files, 1 obsolete file)

Attached image image.png

See screenshot.

The url of the <img> element seems wrong, has a bunch of nested protocols:

moz-anno:favicon:moz-anno:favicon:moz-anno:favicon:moz-anno:favicon:https://github.com/fluidicon.png"

If I leave this as moz-anno:favicon:https://github.com/fluidicon.png then it uses the right image.

I can't repro this on a clean profile, maybe it comes from here? Marco, do you know what might be going on?

Flags: needinfo?(mak)

If tab.icon is already a moz-anno:favicon, GetFaviconLinkForIcon should not really add another prefix, same for getIconForUrl... That's a simple fix and I will just do that.

I think it is being added multiple times because remote tabs are cached, and every time we go through the list we add a moz-anno:favicon to tab.icon... that doesn't make sense.

Thank you for finding this.

Assignee: nobody → mak
Status: NEW → ASSIGNED
Flags: needinfo?(mak)
Severity: -- → S3
Priority: -- → P3
Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/46add7a02063 Don't add moz-anno:favicon to local protocols. r=daisuke,sessionstore-reviewers
Blocks: 1845349
Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/094d4087bf81 Don't add moz-anno:favicon to local protocols. r=daisuke,sessionstore-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
Flags: needinfo?(mak)
Flags: qe-verify+

I tried to reproduce this issue but I was unsuccessful. Would it be possible to have reproduction steps in order to properly verify this issue?
Thank you.

Flags: needinfo?(emilio)

I couldn't repro on a clean profile, so unfortunately no concrete STR. Daisuke maybe you know?

Flags: needinfo?(emilio) → needinfo?(daisuke)

I suspect you need a tab synced from another desktop device

Hello!
Yes, as Marco said, I could reproduce it with remote tabs in my env.

STRs:

  1. Launch Firefox Release (116.0.2).
  2. Login to Firefox account in Release.
  3. Input git on the urlbar in Release, and confirm that there are no suggestions for any remote tabs.
  4. Launch Firefox Nightly (118.0a1).
  5. Login to Firefox account in Nightly, and confirm that the opening tabs will be shared in Sync Settings.
  6. Open https://github.com in Nightly.
  7. Sync Firefox account in Nightly (Click Sync now).
  8. Sync Firefox account in Release (Click Sync now).
  9. Input git on the urlbar in Release, and confirm there is the suggestion for github.com that is opening in Nightly.

Then, confirm the url of the icon of the suggestion using Browser Toolbox in Release.
(To confirm will be easier if set ui.popup.disable_autohide to keep the urlbar result)
I attached the screenshot. (Sorry, Japanese!)

Flags: needinfo?(daisuke)
Flags: needinfo?(oardelean)
Attached image repro beta.png

Thank you so much for taking your time to provide such detailed STR, Daisuke!
However, using these STR I can still reproduce the wrong color scheme icon. Affecting both Nightly 118.0a1 and Firefox 117.0b8 on Windows 10, macOS 12, Ubuntu 22. Please refer to the attached screenshot for more details.

Flags: needinfo?(oardelean)

Thank you very much, Ardelean!
Yeah, I had checked only whether the protocol was correct or not. And indeed, the fallback icon color was wrong.
I investigated this one, and it seems the reason was that the -moz-context-properties: fill; is not applied to the image whose protocol starts with moz-anno.
https://searchfox.org/mozilla-central/rev/98d0035da36d786b7ca9191b8a23de9c2c943465/layout/svg/SVGContextPaint.cpp#65-66

I reopen this bug, and I will fix the issue by applying moz-anno protocol as well.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

please don't reopen this. we fixed an actual bug here where the icon url was completely broken, if there's leftover issues to handle that should happen in a new bug.

Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED

Comment on attachment 9349845 [details]
Bug 1844150: Use context properties in SVG of moz-anno protocol

Revision D186644 was moved to bug 1849791. Setting attachment 9349845 [details] to obsolete.

Attachment #9349845 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: