Closed Bug 1808089 Opened 2 years ago Closed 2 years ago

Incorrect favicon showing in bookmarks toolbar

Categories

(Firefox :: Bookmarks & History, defect)

Firefox 108
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: andy2020, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:108.0) Gecko/20100101 Firefox/108.0

Steps to reproduce:

Drag tab to bookmarks toolbar.

Actual results:

Incorrect favicon is displayed in bookmarks toolbar.

Expected results:

The favicon in the tab should be used in the bookmarks toolbar.

If I perform the "Clear Recent History..." and exit Firefox, the issue is resolved. I think very few people will know to do this, so it would be best fix this issue.

The Bugbug bot thinks this bug should belong to the 'Firefox::Bookmarks & History' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Bookmarks & History

Please can you give a specific example of where this doesn't work? If it doesn't work for any site, then we'll need to know that as well.

Flags: needinfo?(andy2020)

I was helping a client with their website which is hosted on HostGator. The HostGator favicon was showing on the clients website. When I added a favicon.ico to the web root, that is when the issue occurred. The new favicon.ico was correct in the tab, but dragging the tab to the bookmarks toolbar, the HostGator favicon would show.

Flags: needinfo?(andy2020)

Without a url it's hard for us to debug the problem. There may be a lot of reasons for which an icon is not cached as expected. and the difference between the tab and the bookmark is exactly that the latter uses a cached value.
Note that the cached icons in Firefox expire after 7days, to check for modifications I'd suggest to try loading the page with new profile where there will be nothing in the favicons cache (removing favicons.sqlite from that profile folder is a quick way to reset it). A better way may be provided in bug 418144 when it will be fixed in the future.

Thank you for the insight, Marco.

Just now I was looking at the favicons.sqlite and it sure is a complicated database structure. I was able to find my clients favicon.ico but when viewing it, I see the incorrect HostGator favicon.ico. Where would I find the correct favicon.ico in the favicons.sqlite database?

Interesting how if I the favicons.sqlite database is open and Firefox is not open, all is fine. But as soon as I have both the favicons.sqlite database open and Firefox open, the cache for all the favicon's are lost.

Don't open the database while firefox is running, that's not expected to work. The structure of favicons.sqlite is complex and it's likely not what you need, I pointed out that database only to suggest that when making changes to a site you should test them with a clean new Firefox profile. Testing with an existing profile will just fetch from the cache whatever was on the page before your changes.

Thank you again, Marco.

Here's a link to a page which explains how we can force Firefox to refresh a favicon from its cache:

https://alextseng.net/blog/posts/20180928-firefox-favicon-refresh/

Marking as incomplete, as there's no usable information here for a fix or change.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE

Thank you, Mark.

I agree the issue with the favicon not showing the correct favicon is best resolved by using the "Clear Recent History" function.

You need to log in before you can comment on or make changes to this bug.