Open Bug 1781081 Opened 3 years ago Updated 7 months ago

NewTabUtils.activityStreamLinks.getTopSites() does not include some favicons

Categories

(Firefox :: New Tab Page, defect, P1)

Firefox 102
defect

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:

  1. Create a new profile (using firefox --ProfileManager or whatever)
  2. Launch firefox
  3. On the 'about:newtab' page, dismiss all the sponsored (and other) tiles.
  4. Quit firefox
  5. 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;'
  6. Launch Firefox
  7. Browse to 'https://slashdot.org/' - note favicon shown in tab
  8. Note a 'placeholder' icon shown for slashdot on the newtab page.
  9. Quit Firefox
  10. Repeat step 5 - note no entry for slashdot
  11. 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.

favicon appears after a while

troubleshooting info

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.

Component: Untriaged → New Tab Page

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.

Assignee: nobody → davidmaxwaterman
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

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.

The severity field is not set for this bug.
:daleharvey, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dharvey)
Severity: -- → S3
Flags: needinfo?(dharvey)
Priority: -- → P1

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.

Assignee: davidmaxwaterman → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(achurchwell)

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.

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.

Flags: needinfo?(achurchwell) → needinfo?(sdowne)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: