[whatwg/storage] StorageEstimate.quota + Storage Pressure (#73)

We have been exploring the behavior around quota while under storage pressure: What value should we return for `quota` when the user has less available disk space than the quota we'd ordinarily return?

The obvious approach is to return a shrunken value which is less than or equal to the available disk space.  The issue with allowing script to identify the remaining disk space is that a bad actor could query the value before and after caching an opaque response and determine it's size.  (See https://github.com/whatwg/storage/issues/31)  Since we don't want to do this, the spec should have a recommendation.

One solution is to return the same quota, regardless of storage pressure.  The tradeoff is that apps will lose insight into their own remaining space.  This can be addressed by providing a storage pressure API that would let apps know whether there is more/less than X MB/GB.

Thoughts?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/storage/issues/73

Received on Tuesday, 30 July 2019 17:19:20 UTC