Represents the sync
storage area. Items in sync
storage are synced by the browser, and are available across all instances of that browser that the user is logged into (e.g. via Firefox sync, or a Google account), across different devices.
For Firefox a user must have Add-ons
checked under the "Sync Settings" options in "about:preferences"
.
Note that the implementation of storage.sync
in Firefox relies on the Add-on ID. If you use storage.sync
, you must set an ID for your extension using the browser_specific_settings
manifest.json key.
The main use case of this API is to store preferences about your extension and allow the user to sync them to different profiles.