Re: [permissions] A "dismissed" state (#4)

On March 6, 2015 at 1:48:56 AM, Mounir Lamouri (notifications@github.com) wrote:
> @marcoscaceres I don't thnk ```dismissed``` is a state of the permission. It's a result  
> of the request.
>  
> If what you want is to be able to know whether the user dismissed the permission, in an ideal  
> world, you could do:
> ```js
> Permissions.request('foo').then(function(p) {
> if (p.status === 'prompt') {
> // permission was dismissed or ignored
> }
> [...]
> });
> ```
> Obviously, we can't do that now because we do not expose a ```.request()``` method.

Ok, that works. But shouldn't that be a reject instead? 

I'm mostly just wanting to make sure this gets into the spec somehow (so we can continue to ignore it in Gecko, jk ;) ).


---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/issues/4#issuecomment-77695227

Received on Saturday, 7 March 2015 16:01:56 UTC