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

I'm a little confused what the issue is here. @inexorabletash, you said

> If a site assumed persistentPermission() => "granted" indicates the storage is persistent it would not bother to call requestPersistent()

Is that actually a bad thing in any way? It seems fine. The idea is that authors could write:

```js
navigator.storage.persistentPermission()
  .then(function(permission) {
    return permission === 'granted';
  })
  .then(function(hasPersistent) {
   // ...
  });
```

and it would be equivalent to

```js
navigator.storage.persistentPermissionOnlyIfNoPrompt()
  .then(function(hasPersistent) {
   // ...
  });
```

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

Received on Wednesday, 19 August 2015 04:51:12 UTC