StorageAccessHandle: estimate() property

Note: See StorageManager.estimate() to understand usage.

Syntax

js
handle.estimate()

Parameters

None.

Return value

A Promise that fulfills with an unpartitioned StorageEstimate object.

Exceptions

SecurityError DomException

Thrown if access was not granted.

See StorageManager.estimate()

Examples

js
document.requestStorageAccess({ estimate: true }).then(
  (handle) => {
    console.log("estimate access granted");
    await handle.estimate();
  },
  () => {
    console.log("estimate access denied");
  },
);

Note: See Using the Storage Access API for a more complete example.

Specifications

Specification
Extending Storage Access API (SAA) to non-cookie storage
# ref-for-dom-storageaccesshandle-estimate

Browser compatibility

BCD tables only load in the browser

See also