We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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

more options

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)

more options

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.

more options

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?

more options

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.