W3C home > Mailing lists > Public > public-device-apis-log@w3.org > October 2019

Re: [wake-lock] In obtain permission: don't co-opt resultPromise - it's creating a custom permission model (#198)

From: Marcos Cáceres via GitHub <sysbot+gh@w3.org>
Date: Tue, 08 Oct 2019 09:31:24 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-539432599-1570527083-sysbot+gh@w3.org>
I wonder if we should also drop `.requestPermission()`? Permission should really be trigged when the lock is requested. The `WakeLockPermissionDescriptor` can be used to `permissions.query()` the Permissions database to know if permission to use the API. 

-- 
GitHub Notification of comment by marcoscaceres
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/198#issuecomment-539432599 using your GitHub account
Received on Tuesday, 8 October 2019 09:31:59 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:57 UTC