Closed
Bug 1429766
Opened 7 years ago
Closed 7 years ago
favicon displayed incorectly
Categories
(Toolkit :: Places, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 418144
People
(Reporter: kes-kes, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20180106205129
Steps to reproduce:
open local site with favicon:
http://feelsafe:3000/favicon.ico
It looks like the favicon is cached and can not be purged from that cache. Even CTRL+SHIFT+R do no help
Actual results:
The wrong favicon is displayed on tab
Expected results:
The right favicon should be displayed
Reporter | ||
Comment 1•7 years ago
|
||
[this answer helps](https://stackoverflow.com/questions/8616016/favicon-not-displayed-by-firefox)
I clear places.sqlite
Reporter | ||
Comment 2•7 years ago
|
||
Also after visiting
http://feelsafe:3000/favicon.ico
when I restart firefox it helps. The icon is refreshed
Updated•7 years ago
|
Component: Untriaged → Places
Product: Firefox → Toolkit
Comment 3•7 years ago
|
||
Icons are no more stored in places.sqlite from at least Firefox 55. They are now stored in favicons.sqlite
Favicons are also expired after 7 days, not immediately, as you noticed refresh (even forced) doesn't change that, that's a longstanding bug.
Firefox 58 has some fixes for favicons and may help, but it won't still refresh icons on request.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 4•7 years ago
|
||
this makes hard while site developing. There should be button to drop cached favicons
Comment 5•7 years ago
|
||
You can use PlacesUtils.favicons.expireAllFavicons(); from the Browser Console.
We have several reports about a similar issue:
for our website we have several static png images for favicon:
- 0.png - when there are no unread messages
- 1.png - when there is only 1 unread message
- 2.png - when there are 2 unreads
and so on
Usually a usecase looks like this:
- user has 0 unread - favicon is <link id="png16favicon" rel="icon" type="image/png" href="/0.png" sizes="16x16">
- he gets a new message - we remove previous <link/> and add a new one - <link id="png16favicon" rel="icon" type="image/png" href="/1.png" sizes="16x16">
- when he reads the message - we change favicon back to <link id="png16favicon" rel="icon" type="image/png" href="/0.png" sizes="16x16"> by removing current <link/> element and replacing it with a new one that points to 0.png - the result is like this <link id="png16favicon" rel="icon" type="image/png" href="/0.png" sizes="16x16">.
Expected result:
we see image that corresponds to 0.png
Actual result:
we see image that looks like 1.png
=======
It is not 100% reproducible.
We got it once and we could reproduce it several times even after FF reload.
But after loading FF without AddOns - it went away.
When we loaded FF with AddOns again - it is not reproducing as of now.
> You can use PlacesUtils.favicons.expireAllFavicons(); from the Browser Console.
any recommendation what can be suggested to final users that are experiencing this problem?
> You can use PlacesUtils.favicons.expireAllFavicons(); from the Browser Console.
This didn't work in our case. We still see wrongly "cached" favicon image.
Comment 10•7 years ago
|
||
Browser version:
firefox=58.0.2+build1-0ubuntu0.16.04.1
After running PlacesUtils.favicons.expireAllFavicons(); and browser restart - actually all seems to work
for some time at least.
You need to log in
before you can comment on or make changes to this bug.
Description
•