StorageAccessHandle: estimate() property
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
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
BCD tables only load in the browser