While synchronizing addon previously not installed on current PC firefox resets settings of this addon to defaults. How to prevent this?
One defenitive scenario for an example: 1. On the desktop I've got Flagfox with certain timeplaces being set (it holds for any addon with synced settings, by the way). 2. Syncronization of addons (and settings) is enabled in my Sync account. 3. When I add notebook as another device to my Sync Flagfox is installed with default options. 4. The most evil: this default options of addon *overrides settings on the Sync server*. 5. I receive default Flagfox settings back to my desktop from Sync server and lost my configured set of timeplaces.
所有回复 (3)
Only preferences that have a corresponding services.sync.prefs.sync.* pref that is set to true are synced.
So you need to create such a Boolean services.sync.prefs.sync pref to sync specific prefs that are used by extensions.
Thank you, cor-el, for answering.
The problem is **not** that my add-on's don't syncronize all their settings.
The problem is that **brand new add-on after installation due to sync posts its default settings to sync server**. By this action it **overwrites the settings of this add-on configured on previous station**. While the behaviour I want is: first try to get settings **from** sync server.
Is such a behaviour anyway achievable?
I don't think so. If you install an extension then you get the default for all prefs that it creates unless probably those prefs are already there, possibly from a previous installation, but that isn't guaranteed as well as it depends on the startup code of the extension (e.g. using the same version or it is an update). I don't know how prefs are synced and maybe syncing prefs only work after a restart. Extensions that do not require a restart (No Restart) may even behave differently.