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

Re: [wake-lock] WakeLock.request() returns a promise that never resolves (#226)

From: Reilly Grant via GitHub <sysbot+gh@w3.org>
Date: Thu, 03 Oct 2019 16:38:52 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-538025034-1570120731-sysbot+gh@w3.org>
> How is `WakeLockSentinel.release()` supposed to behave when an event such as a page visibility change happens? Is it supposed to do nothing, return a rejected promise or none of the above?

My vote is for it to do nothing. Returning a rejected Promise doesn't tell the page anything useful.

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/226#issuecomment-538025034 using your GitHub account
Received on Thursday, 3 October 2019 16:38:53 UTC

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