Closed Bug 1678957 Opened 4 years ago Closed 2 years ago

Preference syncing doesn't work well when distributions/operating systems have different default values for preferences

Categories

(Firefox :: Sync, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1731249
Tracking Status
firefox84 --- affected
firefox85 --- affected

People

(Reporter: thegreatsynoptic, Unassigned)

References

Details

Attachments

(4 files)

User Agent: Mozilla/5.0 (Linux; Android 10; Nokia 8 Sirocco) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Mobile Safari/537.36

Steps to reproduce:

I am using Firefox on two machines - Lubuntu (Linux) 32 bit and Windows 10 64 bit.
Sync feature is enabled on both.
When the sync setting "sync options/preferences" is marked some issues (listed below) happen.

Actual results:

After each 10 minute synchronization cycle on both devices the following things happen:

  • on Linux my DRM settings to play/use DRM turns off. I can manually reanable it but every next sync resets my setting.
  • on Windows 10 the highlights section on the new tab page disappeares.

Expected results:

The DRM settings should be enabled on both devices as the options are synced through my Firefox account.
The same thing should happen to the highlights section on the new tab page - also turned on by default and synced.

Summary: Cross-platform sync problem when options/preferences are marker in sync settings → Cross-platform sync problem when options/preferences are marked in sync settings

Sorry - forgot to add that Lubuntu uses latest Firefox beta while Firefox on Windows 10 is a Nightly version.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Sync

Sorry you are having this issue - that's very odd. The DRM setting is controlled via the media.eme.enabled preference, which defaults to true, while the "highlights" feature is controlled via browser.newtabpage.activity-stream.feeds.section.highlights. It would be great if you could follow the instructions at https://wiki.mozilla.org/CloudServices/Sync/File_a_desktop_bug, then reproduce the bug, then attach the your log files. the about:sync addon will also help show you the "preferences" collection, so reporting what those 2 preference are in that collection, vs what they are on the PC itself would also be helpful.

Flags: needinfo?(thegreatsynoptic)

(In reply to Mark Hammond [:markh] [:mhammond] from comment #3)

Sorry you are having this issue - that's very odd. The DRM setting is controlled via the media.eme.enabled preference, which defaults to true, while the "highlights" feature is controlled via browser.newtabpage.activity-stream.feeds.section.highlights. It would be great if you could follow the instructions at https://wiki.mozilla.org/CloudServices/Sync/File_a_desktop_bug, then reproduce the bug, then attach the your log files. the about:sync addon will also help show you the "preferences" collection, so reporting what those 2 preference are in that collection, vs what they are on the PC itself would also be helpful.

I installed Your addon on Firefox Nightly and upload in the attachment a ZIP file with all its logs.
In addition I uploaded the error sync file from Firefox Beta on Lubuntu (there were no other sync logs, maybe due to services.sync.log.appender.file.logOnSuccess being set to false).

Hope this helps.

Flags: needinfo?(thegreatsynoptic)
Attached file aboutsync-logfiles.zip

ZIP packagae of syn logs form Nightly (Win 10).

Error sync log from Firefox Beta (Lubuntu).

There's certainly something odd going on here. The linux machine appears to have only recently (as in, only a few hours ago) signed in to the Firefox Account - is that expected? Firefox also seems confused about the state of the "prefs" engine - it can't decide if it should be enabled or not. If you visit about:config and look for the services.sync.declinedEngines preference, I think you will find "prefs" in it, even though I suspect the UI will show preferences are syncing - it would be interesting to know whether removing "prefs" from that pref (and the comma before/after it) helps in any way.

(In reply to Mark Hammond [:markh] [:mhammond] from comment #7)

There's certainly something odd going on here. The linux machine appears to have only recently (as in, only a few hours ago) signed in to the Firefox Account - is that expected? Firefox also seems confused about the state of the "prefs" engine - it can't decide if it should be enabled or not. If you visit about:config and look for the services.sync.declinedEngines preference, I think you will find "prefs" in it, even though I suspect the UI will show preferences are syncing - it would be interesting to know whether removing "prefs" from that pref (and the comma before/after it) helps in any way.

It may be my caused by me as I decided to log out and in to Firefox sync hoping it fixes itself before taking the logs.
Regarding the second part of your message - probably yes, as disselecting the prefs from sync options fixes the problem.

(In reply to Mic Sparrow from comment #8)

Regarding the second part of your message - probably yes, as disselecting the prefs from sync options fixes the problem.

The odd thing I could see is that even when prefs was enabled, it was listed in services.sync.declinedEngines, which generally shouldn't be the case.

Regardless, I think that to make any further progress here, we probably need that addon installed on your Linux box (which has the side-effect of adjusting the log levels etc), then wait some time (at least until the problem happens again a couple of times), then get new logs from both machines.

(In reply to Mark Hammond [:markh] [:mhammond] from comment #9)

(In reply to Mic Sparrow from comment #8)

Regarding the second part of your message - probably yes, as disselecting the prefs from sync options fixes the problem.

The odd thing I could see is that even when prefs was enabled, it was listed in services.sync.declinedEngines, which generally shouldn't be the case.

Regardless, I think that to make any further progress here, we probably need that addon installed on your Linux box (which has the side-effect of adjusting the log levels etc), then wait some time (at least until the problem happens again a couple of times), then get new logs from both machines.

So far it seems that deleting the "prefs" entry in "services.sync.declinedEngines" partially resolves the issue as now only DRM settings gets turned off in FF Beta Lubuntu and less often. The preferences/options are set to sync.

(In reply to Mic Sparrow from comment #10)

(In reply to Mark Hammond [:markh] [:mhammond] from comment #9)

(In reply to Mic Sparrow from comment #8)

Regarding the second part of your message - probably yes, as disselecting the prefs from sync options fixes the problem.

The odd thing I could see is that even when prefs was enabled, it was listed in services.sync.declinedEngines, which generally shouldn't be the case.

Regardless, I think that to make any further progress here, we probably need that addon installed on your Linux box (which has the side-effect of adjusting the log levels etc), then wait some time (at least until the problem happens again a couple of times), then get new logs from both machines.

So far it seems that deleting the "prefs" entry in "services.sync.declinedEngines" partially resolves the issue as now only DRM settings gets turned off in FF Beta Lubuntu and less often. The preferences/options are set to sync.

Deleting this entry in both devices. So far DRM settings turned off only one time.

There are 2 distinct problems here:

  • One is that somehow the services.sync.declinedEngines pref got confused - so we'd end up in a situation where we synced the preferences, then at the end decided that it should be disabled - so we nuked the guid and marked it as declined. Then the next sync seemed to do the same thing - but because the guid had changed, it was a "reset" and prefs were re-synced - hence every sync seems to update the prefs collection (whereas normally, it should update only when one of the synced prefs changes, which should be relatively rare. We should fix the possibility of this confusion as part of bug 1580071.

  • The other is that then the preferences do sync (which happened too often due to the above, but will still happen occasionally), at least the 2 prefs media.eme.enabled preference and browser.newtabpage.activity-stream.feeds.section.highlights are behaving strangely - almost as though they have different default values between the 2 platforms - but that doesn't seem to be the case. Probably the only way I can diagnose that is to get logs from both machines, as described in comment 9.

Log files from Nightly (win 10).

Log files from FF Beta (Linux).

(In reply to Mark Hammond [:markh] [:mhammond] from comment #12)

There are 2 distinct problems here:

  • One is that somehow the services.sync.declinedEngines pref got confused - so we'd end up in a situation where we synced the preferences, then at the end decided that it should be disabled - so we nuked the guid and marked it as declined. Then the next sync seemed to do the same thing - but because the guid had changed, it was a "reset" and prefs were re-synced - hence every sync seems to update the prefs collection (whereas normally, it should update only when one of the synced prefs changes, which should be relatively rare. We should fix the possibility of this confusion as part of bug 1580071.

  • The other is that then the preferences do sync (which happened too often due to the above, but will still happen occasionally), at least the 2 prefs media.eme.enabled preference and browser.newtabpage.activity-stream.feeds.section.highlights are behaving strangely - almost as though they have different default values between the 2 platforms - but that doesn't seem to be the case. Probably the only way I can diagnose that is to get logs from both machines, as described in comment 9.

I sent the log files from Your addon after the whole day (yesterday) of using both Firefox.

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(rfkelly)

So best I can tell, you probably have the Firefox that comes with Lubuntu, and that distribution has changed the default values of these 2 preferences. Basically, Sync is recording that the value has the default value - which is different in the official and lubuntu builds. Sadly, I don't think there's much we can do about that without redesigning how prefs are synced.

Severity: -- → S4
Priority: -- → P3
Summary: Cross-platform sync problem when options/preferences are marked in sync settings → Preference syncing doesn't work well when distributions have different default values for preferences

(In reply to Mark Hammond [:markh] [:mhammond] from comment #17)

So best I can tell, you probably have the Firefox that comes with Lubuntu, and that distribution has changed the default values of these 2 preferences. Basically, Sync is recording that the value has the default value - which is different in the official and lubuntu builds. Sadly, I don't think there's much we can do about that without redesigning how prefs are synced.

But the Lubuntu Firefox is not the built-in. This is a beta release downloaded from the archive.firefox site.

Flags: needinfo?(rfkelly)
Summary: Preference syncing doesn't work well when distributions have different default values for preferences → Preference syncing doesn't work well when distributions/operating systems have different default values for preferences

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true
See Also: → 1731249

The patch I'm landing in bug 1731249 also handles every pref identified in this bug (eg, DRM, pocket, etc), so I'm closing this as a dupe of that. Note that all clients you use will need to update to the version with that patch before it will work correctly (ie, just waiting for a Firefox Nightly, but not waiting for your linux distro to release a new version with the patch will still have the problem)

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: