You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quota API may not be the right place to add these, but filing this as we've also heard similar requests.
I suppose there could be two flavors:
one for estimating size of stored objects (e.g. Cache entry, IDB object store), and
one for estimating size of storable objects (e.g. blob, stream, request/response etc)
The former could probably belong to each storage API, while the latter could be also exposed by each object (and some objects already expose the info, e.g. Blob.size). If this is to live in Quota Management API it could probably look like:
Promise<long long> navigator.storageQuota.estimateSize(sequence<(Blob or ArrayBuffer or Stream or Request or Response or ...)> objects);
Also: as is discussed in w3c/ServiceWorker#587 it's not straightforward to estimate on-disk size, because:
For some object the size doesn't become available until its content is fully drained
The actual on-disk size would depend on the implementation, as it may be de-duped or compressed
The text was updated successfully, but these errors were encountered:
Separated from #6
Related: w3c/ServiceWorker#587
Quota API may not be the right place to add these, but filing this as we've also heard similar requests.
I suppose there could be two flavors:
The former could probably belong to each storage API, while the latter could be also exposed by each object (and some objects already expose the info, e.g. Blob.size). If this is to live in Quota Management API it could probably look like:
Also: as is discussed in w3c/ServiceWorker#587 it's not straightforward to estimate on-disk size, because:
The text was updated successfully, but these errors were encountered: