Re: [storage] Change persistentPermission() to persistent() (#7)

> Actually, I suspect we need to keep persistentPermission() so you can avoid prompting for the "denied" case.

My thinking was that we should keep persistentPermission() so that sites can know to prompt when they would be autogranted the permission without bothering the user. We are planning on using an "engagement score" for such a purpose: when a user uses a site enough and that site requests to be exempt from disk cleanup (aka the persistent permission), the exemption will be granted without prompting the user. But the site must request the exemption to get it.

> But we should also have persistent().

This would be a convenience method that would return the equivalent of something like persistentPermission(defaultBox) == "granted"?

> I'm guessing we never want to give synchronous access to boxes, correct?

You mean adding a function to the API that takes a box id/reference as a parameter and returns synchronously? I would think not, for the classic problem where that info is on disk and we don't want to block the main thread on disk access.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/storage/issues/7#issuecomment-126504353

Received on Thursday, 30 July 2015 21:55:35 UTC