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

Re: [wake-lock] request(): Order for permission and other checks (#202)

From: Marcos Cáceres via GitHub <sysbot+gh@w3.org>
Date: Mon, 06 May 2019 03:11:38 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-489490032-1557112297-sysbot+gh@w3.org>
> should request() reject with NotAllowedError or AbortError

Sounds like one should do the feature policy check first (assuming it can be done sync) which would result in a promise rejected with `NotAllowedError` - thus is wins?  

-- 
GitHub Notification of comment by marcoscaceres
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/202#issuecomment-489490032 using your GitHub account
Received on Monday, 6 May 2019 03:11:39 UTC

This archive was generated by hypermail 2.3.1 : Monday, 6 May 2019 03:11:40 UTC