Bug #747
closedWebsite favorite icons aren't updated when navigating history
0%
Description
We had this problem several years ago and it was fixed, but it has recently started happening again. I am not sure what has changed. Perhaps it relates to the same WebView changes that are preventing domain font sizes from working properly.
Files
Updated by Soren Stoutner over 3 years ago
This appears to only happen when a URL is loaded from a link in a website. To replicate, do a search for `Don't kill my app` and then click on the link to dontkillmyapp.com.
Updated by Soren Stoutner almost 2 years ago
There is some additional information at #946.
Updated by Soren Stoutner almost 2 years ago
This bug is intermittent, which means it probably relates to some sort of race condition.
Updated by Soren Stoutner almost 2 years ago
- Subject changed from When a website has no favorite icon, the favorite icon of the previous website is displayed to When a website has no favorite icon, the favorite icon of the previous website is sometimes displayed
Updated by Soren Stoutner almost 2 years ago
The problem is caused because favorite icon requests are asynchronous. They are often (or perhaps always) not returned (or maybe even made) until after the webpage "finishes" loading. Sometimes, they can be significantly delayed.
If a website with a favorite icon is loaded and then another website without a favorite icon is loaded the favorite icon for the first website might be returned after the WebView has moved on to the second website. `onReceivedIcon` does not provide any mechanism to determine which URL requested the icon.
In the past, I was able to work around this a bit by discarding any icons received while a website is loading, as these will be from previous websites. However, sometimes a favorite icon is so delayed that it doesn't load until after the second website has finished loading, which leads to this bug.
There isn't really anything I can do to work around this in Privacy Browser, but I will submit an upstream bug to the Chromium project and see if they will address it there.
Updated by Soren Stoutner almost 2 years ago
It looks like there are two existing upstream bug reports on this issue.
https://bugs.chromium.org/p/chromium/issues/detail?id=1082067
https://bugs.chromium.org/p/chromium/issues/detail?id=1341195
Updated by Soren Stoutner almost 2 years ago
- Status changed from New to In Progress
Updated by Soren Stoutner about 1 year ago
- File Wrong Favorite Icon.png Wrong Favorite Icon.png added
This can happen when navigating the history. For example, load https://mwmbl.org, which has no favorite icon. Click on the Github link, which will load the Github favorite icon. Go back to mwmble.org, which will still display the Github icon.
Updated by Soren Stoutner about 1 year ago
- Priority changed from Next Release to 3.x
Updated by Soren Stoutner about 1 year ago
- Status changed from In Progress to New
- Priority changed from 3.x to Next Release
Something similar happens when viewing https://www.mojeek.com/news.
Updated by Soren Stoutner 12 months ago
- Subject changed from When a website has no favorite icon, the favorite icon of the previous website is sometimes displayed to Website favorite icons aren't updated when navigating history
Updated by Soren Stoutner 12 months ago
- Status changed from New to Closed
Updated by Soren Stoutner 9 months ago
That sounds like a different issue. You should create a separate bug report with a list of steps to reproduce the behavior.