Re: Intent to ship: Storage API estimate method

2016-09-23 Thread smaug

On 09/22/2016 02:57 AM, Andrew Overholt wrote:

On Thu, Sep 22, 2016 at 2:03 AM, smaug  wrote:



On 09/21/2016 04:42 AM, Shawn Huang wrote:



​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?



That sounds a tad worrisome. Is there a reason why we can't wait until we
have SecureContext also in workers?



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 :)


Right. And bz said today that he has the patch ready for SecureContext in workers and was 
missing "just" some tests.

___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Intent to ship: Storage API estimate method

2016-09-23 Thread Xidorn Quan
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()
>  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
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Intent to ship: Storage API estimate method

2016-09-21 Thread Andrew Overholt
On Thu, Sep 22, 2016 at 2:03 AM, smaug  wrote:

>
> On 09/21/2016 04:42 AM, Shawn Huang wrote:
>
>>
>> ​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?
>>
>
> That sounds a tad worrisome. Is there a reason why we can't wait until we
> have SecureContext also in workers?
>

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 :)
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Intent to ship: Storage API estimate method

2016-09-21 Thread smaug

What is the implementation status in other browsers?

On 09/21/2016 04:42 AM, Shawn Huang wrote:

Summary:
​The Storage Standard defines an API for persistent storage and quota
estimates.
​The 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:
​​ 
​https://bugzilla.mozilla.org/show_bug.cgi?id=1267941​


Link to standard:

​https://storage.spec.whatwg.org/#dom-storagemanager-estimate


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?


That sounds a tad worrisome. Is there a reason why we can't wait until we have 
SecureContext also in workers?

___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform