Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Intent to ship: Storage API estimate method

62 views
Skip to first unread message

Shawn Huang

unread,
Sep 20, 2016, 11:42:40 PM9/20/16
to mozilla.dev.platform group
Summary:
​The Storage Standard defines an API for persistent storage and quota
estimates.
​The estimate()
<https://storage.spec.whatwg.org/#dom-storagemanager-estimate> method can
be used to determine whether there is enough space left to download,
estimate() method returns both usage and quota per a origin.


Bug:
​​ <goog_1558447461>
https://bugzilla.mozilla.org/show_bug.cgi?id=1267941


Link to standard:
<https://drafts.csswg.org/css-transitions-2/#eventdef-transitionevent-transitionstart>
https://storage.spec.whatwg.org/#dom-storagemanager-estimate
<https://drafts.csswg.org/css-transitions-2/#eventdef-transitionevent-transitionstart>

Platform coverage: all platforms.

Estimated or target release: 51

Preference behind which this will be implemented: Not needed.

DevTools bug: Not needed?


​Because ​Storage API needs to have SecureContext support, but currently
not having isSecureContext available in Workers (bug 1269052) is
problematic. Can we initially release the Storage API without Worker
support?

smaug

unread,
Sep 21, 2016, 2:03:59 PM9/21/16
to Shawn Huang
What is the implementation status in other browsers?
That sounds a tad worrisome. Is there a reason why we can't wait until we have SecureContext also in workers?

Andrew Overholt

unread,
Sep 21, 2016, 9:57:44 PM9/21/16
to smaug, dev-platform
I encouraged Shawn to send this to gauge people's thoughts on whether we
could ship without Worker support. It seems you're on the side of waiting
until we have SecureContext support in Workers :)

Xidorn Quan

unread,
Sep 23, 2016, 6:53:34 AM9/23/16
to dev-pl...@lists.mozilla.org
On Wed, Sep 21, 2016, at 01:42 PM, Shawn Huang wrote:
> Summary:
> ​The Storage Standard defines an API for persistent storage and quota
> estimates.
> ​The estimate()
> <https://storage.spec.whatwg.org/#dom-storagemanager-estimate> method can
> be used to determine whether there is enough space left to download,
> estimate() method returns both usage and quota per a origin.

How is the quota of an origin decided? Is that something depends on
user's disk capacity or it's just a fixed value? Would that expose new
fingerprint?

- Xidorn

smaug

unread,
Sep 23, 2016, 12:30:49 PM9/23/16
to Andrew Overholt
Right. And bz said today that he has the patch ready for SecureContext in workers and was missing "just" some tests.

0 new messages