- From: Reilly Grant via GitHub <sysbot+gh@w3.org>
- Date: Wed, 16 Oct 2019 20:43:49 +0000
- To: public-device-apis-log@w3.org
reillyeon has just created a new issue for https://github.com/w3c/wake-lock: == Race condition in request() steps == The steps for [the `request()` method](https://w3c.github.io/wake-lock/#the-request-method) include an asynchronous request to [obtain permission](https://w3c.github.io/wake-lock/#dfn-obtain-permission) to acquire the wake lock. In the Blink implementation the checks that occur before this step have to be repeated after the permission check is complete as the state of the page, most notably visibility, may have changed. The algorithm should be updated to take this into account as other implementations may have similar constraints. CC @marcoscaceres as Gecko has opinions on the order in which these checks should be performed. Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/239 using your GitHub account
Received on Wednesday, 16 October 2019 20:43:51 UTC