-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StorageManager.estimate #221
Comments
I see one of the tests is tentative. Does anyone know why that is? |
Probably because the spec for |
In the MDN short survey on APIs & JavaScript, "Storage quota estimation ( |
WebKit just implemented |
Thank you for proposing the StorageManager.estimate for inclusion in Interop 2023. We wanted to let you know that this proposal was not selected to be part of Interop this year. We had many strong proposals, and could not accept them all. This should not be taken as a comment on the technology as a whole. For an overview of our process, see the proposal selection summary. Thank you again for contributing to Interop 2023! Posted on behalf of the Interop team. |
Description
The StorageManager interface of the Storage API provides an interface for managing persistence permissions and estimating available storage.
StorageManager.estimate
returns a Promise that resolves to an object containing usage and quota numbers for an origin.Not all browsers support the
estimate
method onStorageManager
. And where it is supported, implementations are inconsistent. For instance:estimate
at all.estimate
but not details such asusageDetails
.Rationale
For applications that make heavy use of local storage, this API becomes increasingly critical in order to understand when an application is about to hit storage limits and warn users or take preventative measures. This becomes even more important as more applications use newer quota-limited storage APIs such as OPFS (+ AccessHandles) which will soon be supported in all browsers.
Specification
https://storage.spec.whatwg.org/#ref-for-dom-storagemanager-estimate
Tests
https://wpt.fyi/results/storage/storagemanager-estimate.https.any.html?label=experimental&label=master&aligned
https://wpt.fyi/results/storage/estimate-usage-details-caches.https.tentative.any.worker.html
The text was updated successfully, but these errors were encountered: