W3C home > Mailing lists > Public > public-device-apis-log@w3.org > July 2018

[wake-lock] What if WakeLockRequest is garbage collected?

From: Mounir Lamouri via GitHub <sysbot+gh@w3.org>
Date: Mon, 30 Jul 2018 17:45:14 +0000
To: public-device-apis-log@w3.org
Message-ID: <issues.opened-345861986-1532972713-sysbot+gh@w3.org>
mounirlamouri has just created a new issue for https://github.com/w3c/wake-lock:

== What if WakeLockRequest is garbage collected? ==
The spec seems to say that the following will hold a wake lock for ever with no way for the page to fix it:
```javascript
navigator.getWakeLock('screen').then(wakelock => {
  wakeLock.createRequest();
});
```

Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/128 using your GitHub account
Received on Monday, 30 July 2018 17:45:16 UTC

This archive was generated by hypermail 2.3.1 : Monday, 30 July 2018 17:45:16 UTC