Firefox suggest uses generic favicon with wrong color-scheme.
Categories
(Firefox :: Address Bar, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox117 | --- | fixed |
People
(Reporter: emilio, Assigned: mak)
References
(Blocks 1 open bug)
Details
Attachments
(4 files, 1 obsolete file)
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.
Reporter | ||
Comment 1•1 year ago
•
|
||
I can't repro this on a clean profile, maybe it comes from here? Marco, do you know what might be going on?
Assignee | ||
Comment 2•1 year ago
|
||
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 | ||
Comment 3•1 year ago
|
||
Assignee | ||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
Comment 6•1 year ago
|
||
Backed out changeset 46add7a02063 (bug 1844150) for causing bc failures at browser_readerMode.js
Backout: https://hg.mozilla.org/integration/autoland/rev/2d245598e3d515a6d740af0b7df954aa1e6e6a50
Failure log: https://treeherder.mozilla.org/logviewer?job_id=423795429&repo=autoland&lineNumber=6642
Comment 8•1 year ago
|
||
bugherder |
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
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.
Reporter | ||
Comment 10•1 year ago
|
||
I couldn't repro on a clean profile, so unfortunately no concrete STR. Daisuke maybe you know?
Assignee | ||
Comment 11•1 year ago
|
||
I suspect you need a tab synced from another desktop device
Comment 12•1 year ago
|
||
Hello!
Yes, as Marco said, I could reproduce it with remote tabs
in my env.
STRs:
- Launch Firefox Release (116.0.2).
- Login to
Firefox account
in Release. - Input
git
on the urlbar in Release, and confirm that there are no suggestions for any remote tabs. - Launch Firefox Nightly (118.0a1).
- Login to
Firefox account
in Nightly, and confirm that the opening tabs will be shared inSync Settings
. - Open
https://github.com
in Nightly. - Sync
Firefox account
in Nightly (ClickSync now
). - Sync
Firefox account
in Release (ClickSync now
). - Input
git
on the urlbar in Release, and confirm there is the suggestion forgithub.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!)
Updated•1 year ago
|
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.
Comment 14•1 year ago
|
||
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.
Comment 15•1 year ago
|
||
Assignee | ||
Comment 16•1 year ago
|
||
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.
Comment 17•1 year ago
|
||
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.
Description
•