Firefox Tomorrow

web api interface

StorageAccessHandle

View on MDN ↗

The StorageAccessHandle interface represents access to unpartitioned state granted by a call to requestStorageAccess().

Instance properties

Instance methods

Example

document.requestStorageAccess({ localStorage: true }).then(
  (handle) => {
    console.log("localStorage access granted");
    handle.localStorage.setItem("foo", "bar");
  },
  () => {
    console.log("localStorage access denied");
  },
);

[!NOTE] See Using the Storage Access API for a more complete example.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also