Bookmark favicon not displayed for urls having a root favicon behind a port
Categories
(Firefox :: Bookmarks & History, defect, P3)
Tracking
()
People
(Reporter: bugsgalore, Assigned: yazan)
References
Details
(Keywords: nightly-community, Whiteboard: [favicons-2024][sng])
User Story
We can refactor the favicons code to pass around nsIURI instead of a url string, so it's easier to extract parts of the uri. This may be a pre-requisite bug. We must check that root icon is appropriately stored and retrieved with the port, and add tests for both sides (storing and retrieving). We should also check the page-icon protocol does the right thing.
Attachments
(1 file)
Go to http://websdr.ewi.utwente.nl:8901/
Bookmark the page into the bookmarks toolbar.
The favicon of the page is not displayed in the bookmark.
Comment 1•3 years ago
|
||
The icon is at http://websdr.ewi.utwente.nl:8901/favicon.ico
I suspect the port is confusing the code that is likely looking for http://websdr.ewi.utwente.nl/favicon.ico that of course doesn't exist.
Comment 2•3 years ago
|
||
I imagine now that we can use nsIURI across threads it would be simpler to change https://searchfox.org/mozilla-central/source/toolkit/components/places/FaviconHelpers.cpp to actually pass nsIURI instead of url strings, that would simplify extracting host, port or prePath more easily instead of keeping around both spec and host (and potentially port)
Comment 3•10 months ago
|
||
I just wanted to note that what I think is the same bug can not only cause no favicon to be found, but indeed for the wrong favicon to be used.
Anytime you save a bookmark that uses a non-standard port, the favicon is either not found, or worse, if the domain also has a server running on a standard port, you will get that favicon as well.
E.g.,
If http://mydomain.com:8080 uses http://mydomain.com:8080/favicon.ico, but there is also http://mydomain.com/favicon.ico, the icon for the latter site will be used for the bookmark for the former site.
I find this most annoying if doing development on localhost, and I always get http://localhost/favicon.ico, even when I'm working on a web app being tested on http://localhost:[port]/ and it has a different favicon at http://localhost:[port[/favicon.ico.
Updated•8 months ago
|
Comment hidden (metoo) |
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 5•4 months ago
|
||
Comment 7•4 months ago
|
||
bugherder |
Updated•3 months ago
|
Comment 8•3 months ago
|
||
Reproducible on a 2024-10-16 Nightly build on Windows 10.
Verified as fixed on Firefox 133.0b3 and Firefox Nightly 134.0a1 on Windows 10, Ubuntu 22, macOS 14.
Description
•