W3C home > Mailing lists > Public > public-sysapps@w3.org > May 2014

Re: Permissions UI & Necessary API

From: Kostiainen, Anssi <anssi.kostiainen@intel.com>
Date: Thu, 15 May 2014 15:29:51 +0000
To: Marcos Caceres <w3c@marcosc.com>, "Sysapps@w3.org" <public-sysapps@w3.org>
CC: "reeder_29@yahoo.com" <reeder_29@yahoo.com>
Message-ID: <224436BD-7628-421C-8397-939493423EE5@intel.com>
On 15 May 2014, at 15:51, Kostiainen, Anssi <anssi.kostiainen@intel.com> wrote:

> On 14 May 2014, at 16:40, Marcos Caceres <w3c@marcosc.com> wrote:
>> On May 14, 2014 at 4:51:14 AM, Kostiainen, Anssi (anssi.kostiainen@intel.com) wrote:
>>>> Promise hasPermission ();
>> Seems unnecessary to have this return a promise, IMO. Just make it an attribute.  
> Yeah, the reason for that was to make it work with Promise.all as suggested by Nikhil. However, it seems whatever passed to Promise.all is converted to a promise by means of Promise.cast, so we could make it an attribute as you suggest.

It appears some implementers would prefer to have hasPermission() return a Promise, at least for some APIs:


Chrome is collecting stats on the usage of the sync .permission, so we should get some data on how widespread the usage is.


Received on Thursday, 15 May 2014 15:30:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:36:20 UTC