Re: [whatwg] Notifications: making requestPermission() return a promise

On Sun, Oct 5, 2014 at 7:41 AM, Anne van Kesteren <> wrote:
> On Thu, Oct 2, 2014 at 10:13 PM, Domenic Denicola
> <> wrote:
>> So we should make a choice, as to whether we want developers to assume they will always get permission (in which case it should reject upon permission not being granted), or whether we want developers to ask the API whether they were granted permission (in which case it should give back a boolean fulfillment value or similar).
> How can they assume permission is always granted? It's up the user.
> It's a request from the developer and the user can say no. What's
> unclear about the name?

Yeah, you misunderstood the question.  It's about whether permission
failure should reject the promise or accept it with a boolean.


Received on Tuesday, 7 October 2014 18:34:41 UTC