Re: [wake-lock] Handling WakeLock.request() promises in parallel steps (#222)

In Blink I ended up just checking if `type` is _"screen"_ and aborting if the page is not visible during those parallel steps, as if it were part of the "abort when" bit. A more generalized approach could maybe have a temporary list of promises that gets moved to `[[ActiveLocks]]` in the last step.

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

Received on Tuesday, 25 June 2019 10:37:06 UTC