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

> What tradeoffs did you consider?

I don't think we've put a lot of thought into this lately. Feature-policy integration was done years ago in #107 to fix #51, and I think we've just moved it around as the spec changed. 

In the current version of the spec we do feature-policy checking in `WakeLock`'s constructor and `AbortSignal` is handled separately in `WakeLock.request()`, but as we move towards making the `WakeLock` interface only have a couple of static methods and no longer constructible they all need to be performed in the same method. The draft in #201 continues to do the feature-policy bits first, FWIW.

-- 
GitHub Notification of comment by rakuco
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/202#issuecomment-491263383 using your GitHub account

Received on Friday, 10 May 2019 11:58:02 UTC