StorageAccessHandle: estimate() method

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

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

Syntax

js
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

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
estimate

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support

See also