Re: [whatwg] Persistent and temporary storage

Very timely!

A handful of us working on Chrome have been having similar discussions
around what we've been calling "durable" storage. In its simplest model a
bit granted by the user to an origin, which then requires explicit user
action before the data might be cleared under storage pressure, so it
sounds like our thinking is broadly aligned, although we're still exploring
various possibilities and their implications for permission prompts,
cleanup UI, behavior under pressure, etc.

Similarly, we've been trying to keep this orthogonal from quota (either the
UA's logic for assigning a quota to an origin quota, or possible
standardized quota APIs), although the UA may use similar signals for
granting permissions/assigning quota.

(FYI, we've been using "durable" and "non-durable" to distance the
discussion from the now-loaded "temporary" vs. "persistent" terms which
surfaced in earlier API proposals, some of which are implemented in Chrome)

On Fri, Mar 13, 2015 at 7:25 AM, Janusz Majnert <j.majnert@samsung.com>
wrote:

>
> On 13.03.2015 15:01, Anne van Kesteren wrote:
>
>> On Fri, Mar 13, 2015 at 2:58 PM, Janusz Majnert <j.majnert@samsung.com>
>> wrote:
>>
>>> The real question is why having a quota is useful?
>>>
>>
>> The reason developers want it is to know how much they can download
>> and store without getting an exception.
>>
>>
> Which still doesn't guarantee they won't get an exception if the device
> runs out of space for whatever reason.
>
>
>>  Native apps are not
>>> controlled when it comes to storing data and nobody complains.
>>>
>>
>> Is there any documentation on how they handle the above scenario? Just
>> write to disk until you hit failure?
>>
>
> I think so. This is certainly the case with desktop apps. I also didn't
> find any mention of quota in Android download manager docs (
> http://developer.android.com/reference/android/app/DownloadManager.html)
> or in Tizen's Download API (https://developer.tizen.org/
> dev-guide/2.3.0/org.tizen.mobile.native.apireference/
> group__CAPI__WEB__DOWNLOAD__MODULE.html)
>
>
>
> Regards,
> --
> Janusz Majnert
> Senior Software Engineer
> Samsung R&D Institute Poland
> Samsung Electronics
>

Received on Friday, 13 March 2015 16:06:31 UTC