[Webkit-unassigned] [Bug 255363] New: Wake Lock permission denied after visibilitychange
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 12 13:59:50 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=255363
Bug ID: 255363
Summary: Wake Lock permission denied after visibilitychange
Product: WebKit
Version: Safari 16
Hardware: Unspecified
URL: https://mdn.github.io/dom-examples/screen-wake-lock-ap
i/
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: webkit at gis.ee
CC: cdumez at apple.com
Wake Lock releases when app is not visible. This is expected and is same in all platforms (iOS, Android, Windows)
document.visibilitychange event is used to aquire wake lock after user has started using app again.
In iOS Wake Lock does not work after "visibilitychange" event to re-aquire wake lock if user *goes to home screen*.
If apps are changed *without going to home screen*, then wake lock is re-aquired or stays active.
Error message: NotAllowedError: Permission was denied
Expected result:
There should be permission to re-aquire wake lock after going back to home screen & back to Safari.
There are no permission errors in Android or Windows.
Example:
https://mdn.github.io/dom-examples/screen-wake-lock-api/
Code:
https://github.com/mdn/dom-examples/blob/main/screen-wake-lock-api/script.js
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230412/0a1d4a21/attachment.htm>
More information about the webkit-unassigned
mailing list