Re: [storage] Allow script to request permission only if there would be no prompt (#9)

I guess I will try to think about this more and see if I come up with anything to contribute. Right now my only thoughts are that if everything was renamed to be way more verbose, I would not be confused:

- `persistentPermission` -> `abilityToMakeBoxesPersistentPermission`
- `requestPersistent` -> `makeBoxPersistent`
- Add `isBoxPersistent` so that we don't think that the permission is representative of things.

Maybe that last one is actually what is missing. E.g. `navigator.storage.isPersistent`. Then I would realize that this condition of being persistent is different from the condition of having the permission to do so. So the API call only changes the latter, but user interaction changes both.

Although now I am confused about why `navigator.storage.estimate()` even works at all once you've made the box persistent. I'll go read the spec more.

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

Received on Wednesday, 19 August 2015 15:59:37 UTC