Sets the access level for the storage area.
This method is only supported for the
Unlike other storage areas,
storage.session is only available to privileged (trusted) extension contexts. This
setAccessLevel method is used to expose the session storage area to content scripts too. By default, all other storage areas are exposed to all extension contexts, including content scripts.
This is an asynchronous function that returns a
await browser.storage.<storageType>.setAccessLevel( accessLevel // string )
<storageType> can be the
storage.session storage type.
String. The access level of the storage area. Possible values are
Promise that is fulfilled with no arguments if the operation succeeded. If the operation failed, the promise is rejected with an error message.
BCD tables only load in the browser