Note: See StorageManager.estimate()
to understand usage.
StorageAccessHandle: estimate() property
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.
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
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | ||
estimate |
125 | No | No | 111 | No | 125 | No | 83 | No | No | No |
See also
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/StorageAccessHandle/estimate