W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2014

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

From: Anne van Kesteren <annevk@annevk.nl>
Date: Sun, 5 Oct 2014 13:41:09 +0200
Message-ID: <CADnb78hhsFSyvg_bc4Oz3Guc+VZY1o8pg2PHz2rtemCzUnrEHg@mail.gmail.com>
To: Domenic Denicola <domenic@domenicdenicola.com>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, Andrew Wilson <atwilson@google.com>, WHATWG <whatwg@whatwg.org>, Jake Archibald <jaffathecake@gmail.com>, Peter Beverloo <beverloo@google.com>, Jonas Sicking <jonas@sicking.cc>
On Thu, Oct 2, 2014 at 10:13 PM, Domenic Denicola
<domenic@domenicdenicola.com> 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?


-- 
https://annevankesteren.nl/
Received on Sunday, 5 October 2014 11:41:35 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:24 UTC