W3cubDocs

/Web Extensions

storage

Type Object
Mandatory No
Example
"storage": {
  "managed_schema": "schema.json"
}

Use the storage key to specify the name of the schema file that defines the structure of data in managed storage.

Managed data declares the enterprise policies supported by the app. Policies are analogous to options but are configured by a system administrator instead of the user, enabling the app to be configured for all users of an organization.

After declaring the policies, they are read from the storage.managed API. However, if a policy value does not conform to the schema, then it is not published by the storage.managed API. It's up to the app to enforce the policies configured by the administrator.

Note: Firefox does not define a schema for managed storage, see storage.managed for more details.

The storage key is an object that has the following required property:

managed_schema

A String specifying the full path of the file within the extension that defines the schema of the manage storage.

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
storage
Yes
79
No
?
No
14
?
?
No
?
?
?
managed_schema
Yes
79
No
?
No
14
?
?
No
?
?
?

Note:

This page includes details from the Chrome developer website page Manifest for storage areas included here under the Creative Commons Attribution 3.0 United States License.

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/storage