Contact emails
Explainer
https://github.com/whatwg/storage/issues/63#issuecomment-441857897
Spec
Skipping the TAG review because this is a minor addition.
Summary
This change adds a dictionary to the returned dictionary of storageManager.estimate() that contains details about usage for each storage backend. The goal is to aid in debugging issues around overuse of specific storage systems.
Motivation
There have been frequent requests from users of `navigator.storage.estimate()` to provide a per storage type breakdown estimation. Currently, a call to this function yields only an estimate of the quota usage for all storage systems combined, making it difficult to reason about what is using up quota. With a detailed per system usage breakdown, apps are provided more context and clues to detect and diagnose storage overuse problems.
For example, one can consider an email client that uses IndexedDB to store text and Cache Storage to store attachments. With the proposed change, said app would be able to debug problematic storage scenarios: high Cache Storage usage but low IndexedDB usage would suggest the app forgot to delete attachments when evicting messages from the local cache. If there was high usage for both storage backends, this would mean the app is caching too many messages, suggesting the eviction policy is not behaving correctly.
Link to “Intent to Implement” blink-dev discussion
Intent to Implement: Storage Quota Usage Details - Google Groups
Is this feature supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes
Debuggability
The information returned by this API is already shown in DevTools.
Risks
Interoperability and Compatibility
Edge: No signals
Firefox: Public support
Safari: No signals
Web developers: Positive
We have positive feedback on this API from a major Google property.
Ergonomics
No ergonomic issues. The change is extending a modern promise-based API.
Activation
The new usage details dictionary is added to the return value of a method that already exists, so this new information should be easy to consume.
Is this feature fully tested by web-platform-tests? Link to test suite results from wpt.fyi.
https://github.com/web-platform-tests/wpt/pull/14531
https://github.com/web-platform-tests/wpt/pull/13883/
Entry on the feature dashboard
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAEHjowyuNPMM2mxD8_eP2j3Jbn2cRim_QYiToO5yADc6aoxFMg%40mail.gmail.com.
We do expect that, in the future, consumers will have more buckets than the default bucket. We see the proposed change as a complement to said future rather than a redundancy. Each bucket will still have access to all the storage backends, so we will still want an API that, given a bucket, will return the per system usage details.
I will.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/5dab5d88-9c1b-4878-bce2-7e18c4cb2c0c%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACj%3DBEgpuYvuPx-qLa_OOwN27hqhv_sbiXSep3unZmMOg86C7g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/op.z2y73nbbrbppqq%40cicero2.linkoping.osa.