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 local storage area. Items in local storage are local to the machine the extension was installed on.

storage.managed

Represents the managed storage area. Items in managed storage 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 session storage area. Items in session storage are stored in memory and are not persisted to disk.

storage.sync

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, 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.

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.