Labs/Weave/Developer/HowToSynchronizeAddOnPrefs

From MozillaWiki
< Labs‎ | Weave‎ | Developer
Revision as of 23:23, 4 February 2010 by Mhanson (talk | contribs) (Created page with 'Weave Sync by default syncs preferences such as those accessible from the Firefox UI. Add-ons can leverage preference sync to have user-set add-on preferences synced so that chan…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Weave Sync by default syncs preferences such as those accessible from the Firefox UI. Add-ons can leverage preference sync to have user-set add-on preferences synced so that changes to add-on settings will propagate to other synced clients.

A preference will be synced if a corresponding prefixed-preference is set to true. The prefix is "extensions.weave.prefs.sync.", so if |extensions.weave.prefs.sync.browser.startup.page| is |true|, the |browser.starup.page| will be synced. An easy way to set these preferences to |true| is to add the entry to the default preferences for the add-on.

https://developer.mozilla.org/en/Default_Preferences