storage - Mozilla | MDN
Types
storage.StorageArea-
An object representing a storage area.
storage.StorageChange-
An object representing a change to a storage area.
Properties
storage has four properties, which represent the different types of available storage area.
storage.local-
Represents the
localstorage area. Items inlocalstorage are local to the machine the extension was installed on. storage.managed-
Represents the
managedstorage area. Items inmanagedstorage are set by the domain administrator and are read-only for the extension. Trying to modify this namespace results in an error. storage.session-
Represents the
sessionstorage area. Items insessionstorage are stored in memory and are not persisted to disk. storage.sync-
Represents the
syncstorage area. Items insyncstorage are synced by the browser, and are available across all instances of that browser that the user is logged into, across different devices.
Events
storage.onChanged-
Fired when one or more items change in any of the storage areas.
Example extensions
Browser compatibility
Note:
This API is based on Chromium's chrome.storage API. This documentation is derived from storage.json in the Chromium code.