Re: [whatwg/storage] Define the behavior when calling persist() if the resource has been already used (#25)

currently, we support three independent repositiories:
<profile>/storage/default
<profile>/storage/temporary
<profile>/storage/permanent

all three can be used with IndexedDB:
indexedDB.open(name, { version: 1, storage: "default/temporary/permanent"})

1. permanent doesn't track quota at all, there's just the initial prompt for given origin
2. temporary behaves like temporary, any origin can be evicted if not used for long time
3. default behaves like temporary but some origins are treated as persistent (they are never evicted), this is currently used for installed apps

So we can rather easily enhance "default" storage to treat "marked" origins (boxes) as persistent (not just those belonging to apps).

I think .persist() would just affect the "default" storage ?


---
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/25#issuecomment-215400984

Received on Thursday, 28 April 2016 11:55:30 UTC