Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

ვრცლად

While synchronizing addon previously not installed on current PC firefox resets settings of this addon to defaults. How to prevent this?

  • 3 პასუხი
  • 6 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 1 ნახვა
  • ბოლოს გამოეხმაურა cor-el

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.

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.