Open Bug 1760879 Opened 4 years ago Updated 3 years ago

Firefox Nightly resets the synced Pinned "Top Sites" after new install/login

Categories

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

defect

Tracking

()

Tracking Status
firefox98 --- affected
firefox99 --- affected
firefox100 --- affected

People

(Reporter: chriskrause, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0

Steps to reproduce:

Install a fresh copy of Firefox Nightly (currently 100.0a1 from 2022-03-22) and login, all items will sync except the pinned top sites.

Actual results:

After a fresh install, or just simply deleting your prefs folders on windows/linux and logging in to sync, all top sites will still populate with your most used links from your synced history, but not your pinned ones.

Going on to other machines where sync was already setup will get the "new updated" pinned site list,losing all the pins.

Creating new pins after this will allow them to sync fine! It seems to just be the initial login that for some reason takes out the pins in your synced settings.

Expected results:

Log in and receive your synced pinned top sites along with your bookmarks and extensions.

Just tested wiping the prefs folder again and pinning some sites before signing in to sync. After signing in and restarting firefox nightly, all pinned sites are wiped and replaced with the default single amazon search pin and your auto generated non pinned top sites from your history. So it doesn't seem to be as simple as it uploading your current top sites on the new install, replacing your server side saved ones.

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

Component: Untriaged → Sync

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0

Hi,

I am able to reproduce the issue in release 98, beta 99 and the latest nightly 100.0a1 (2022-03-23) using Windows 10. Using a new clean profile the pinned tabs are not displayed (logged into sync). After closing and re-opening the same profile the pinned tabs are displayed accordingly.

Thanks for the report.

Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true

hey nan, do you have any thoughts on this one?

Flags: needinfo?(najiang)

Just to clarify, looks like the original report was about the pinned topsites on the newtab, not about the pinned tabs mentioned in Comment 3.

Pinned topsites are indeed on the sync list (services.sync.prefs.sync.browser.newtabpage.pinned), but looks like Firefox couldn't sync the pinned topsites in this case. It'll be nice to have the Sync team looking into this.

Flags: needinfo?(najiang)

(In reply to Nan Jiang [:nanj] from comment #5)

Just to clarify, looks like the original report was about the pinned topsites on the newtab, not about the pinned tabs mentioned in Comment 3.

Pinned topsites are indeed on the sync list (services.sync.prefs.sync.browser.newtabpage.pinned), but looks like Firefox couldn't sync the pinned topsites in this case. It'll be nice to have the Sync team looking into this.

Given comments abpve, I suspect that what might be happening is that sync is setting that pref, but it's being ignored by a-s because it's set after startup (ie, that maybe the pref value is cached?). ie,

  • comment 1 implies: open firefox, sync sets prefs, but user sets a new pinned site anyway - only new site is pinned (ie, a-s overwrite the synced value having not noticed it was set while running)
  • comment 3 implies: open firefox, sync sets prefs but a-s ignored it. Restart Firefox, pref value now used.

Is that possible?

Flags: needinfo?(najiang)

Given comments abpve, I suspect that what might be happening is that sync is setting that pref, but it's being ignored by a-s because it's set after startup (ie, that maybe the pref value is cached?). ie,

Is that possible?

You're right, looks like that's the case and I was able to reproduce it locally.

When I logged into Firefox, Sync did kick in and synced everything including the pinned topsites (i.e. browser.newtabpage.pinned). Though A-S did not refresh itself so I was still seeing those default topsites. Then I manually force A-S to refresh (by flipping browser.newtabpage.activity-stream.feeds.system.topsites) , it showed all my topsites (including the pinned ones) but didn't show that pin icon. After restarting Firefox, it showed pinned topsites as expected. So yeah, Sync worked as expected, A-S didn't refresh the newtab page right away, and when force refreshing, it didn't render the pinned tiles properly.

I also tested the other case that I pinned a few topsites before signing in, those pinned tiles were wiped out and overwritten after I signed in.

Flags: needinfo?(najiang)

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(teshaq)

Moving to New Tab Page component since it's related to activity-stream and that's where https://github.com/mozilla/activity-stream pointed me to

Component: Sync → New Tab Page
Flags: needinfo?(teshaq)

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: -- → P3

This just happened to me on the released v107 (not NIghtly).

I installed Firefox on a fresh OS installation and found that my carefully crafted 4 rows of pinned Top Sites, many with custom icons, became a scrambled mixture of unpinned recent sites on this computer and my two other computers when I logged into them. And there's no affordance offered to rollback to a previous sync point.

It happened to me again today. I logged into a fresh Firefox on a friend's laptop. When I got home and logged into my desktop computer, my 4 rows of pinned topsites were gone, replaced, I assume, by what the topsites algorithm chose.

A freshly logged into firefox should not sync towards peer instances.

When syncing a freshly logged into firefox, the syncing should flow only in the direction towards the fresh firefox, not from it.

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