- From: Marcos Caceres <notifications@github.com>
- Date: Sat, 07 Mar 2015 08:01:27 -0800
- To: w3c/permissions <permissions@noreply.github.com>
Received on Saturday, 7 March 2015 16:01:56 UTC
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