[Webkit-unassigned] [Bug 203287] Gyroscope (DeviceMotion related) permission can not be requested

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 23 08:43:41 PDT 2019


Chris Dumez <cdumez at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |cdumez at apple.com
         Resolution|---                         |INVALID

--- Comment #1 from Chris Dumez <cdumez at apple.com> ---
The requestPermission() API is only exposed in MobileSafari, not WKWebView. The reason is not exposed in WKWebView is because you do not need to request permission there, you have directly access to the device orientation & motion. If DeviceOrientation.requestPermission is not defined, then you can listen for orientation events right away.

I have just verified in WKWebView using a device orientation API demo site that the site indeed has access to the device orientation / motion without requesting permission.

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/20191023/5f54fccc/attachment.html>

More information about the webkit-unassigned mailing list