NewTabUtils.activityStreamLinks.getTopSites() does not include some favicons
Categories
(Firefox :: New Tab Page, defect, P1)
Tracking
()
People
(Reporter: davidmaxwaterman, Unassigned, NeedInfo)
Details
Attachments
(5 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Steps to reproduce:
- Create a new profile (using firefox --ProfileManager or whatever)
- Launch firefox
- On the 'about:newtab' page, dismiss all the sponsored (and other) tiles.
- Quit firefox
- Examine the favicons.sqlite file to see what sites have stored favicons:eg
sqlite3 /Users/davidmaxwaterman/Library/Application\ Support/Firefox/Profiles/*/favicons.sqlite 'select icon_url from moz_icons;' - Launch Firefox
- Browse to 'https://slashdot.org/' - note favicon shown in tab
- Note a 'placeholder' icon shown for slashdot on the newtab page.
- Quit Firefox
- Repeat step 5 - note no entry for slashdot
- Revisit the about:newtab page some time later - note the favicon is displayed, and also has been added to the favicon.sqlite database.
I should add that I'm actually working on my own 'about:newtab' page and using the NewTabUtils.activityStreamLinks.getTopSites() API, and seeing the same behaviour.
Actual results:
A placeholder (in this case, a stylized 'S') is used even though the site has been visited and a favicon downloaded/displayed.
Expected results:
I would expect the favicon to be shown immediately for sites that the browser has shown favicons for.
The favicon is only shown some time later, with seemingly no reason for it.
| Reporter | ||
Comment 1•3 years ago
|
||
favicon appears after a while
| Reporter | ||
Comment 2•3 years ago
|
||
troubleshooting info
Comment 3•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::New Tab Page' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Reporter | ||
Comment 4•3 years ago
|
||
This is a problem I noticed specifically with slashdot. It seems that it
isn't standards compliant and has its favicon's link tag in the body.
As such, it causes a 'beforePageShow' to be set to false, even though
the page hasn't been shown. The 'beforePageShow' flag is assigned to
'canStoreIcon' in onStopRequest():263, resulting in it not being stored.
I don't think this it the original intention of these flags.
Updated•3 years ago
|
| Reporter | ||
Comment 5•3 years ago
|
||
This problem was noticed initially with slashdot. It seems that it
isn't standards compliant and has its favicon's link tag in the body.
As such, it causes a 'beforePageShow' to be set to false, even though
the page hasn't been shown. The 'beforePageShow' flag is assigned to
'canStoreIcon' in onStopRequest():263, resulting in it not being stored.
I don't think this it the original intention of these flags.
Comment 6•3 years ago
|
||
The severity field is not set for this bug.
:daleharvey, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Comment 7•2 years ago
|
||
The bug assignee is inactive on Bugzilla, and this bug has priority 'P1'.
:amy, could you have a look please?
For more information, please visit BugBot documentation.
Comment 8•2 years ago
|
||
I was having this problem with several pinned sites.
I just noticed that, if go to the site and bookmark it, it fixes the icon of the pinned site.
Comment 9•7 months ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:thecount, since the bug has high priority, could you have a look please?
For more information, please visit BugBot documentation.
Description
•