[Webkit-unassigned] [Bug 210261] New: [iOS] DeviceMotionEvent returning value of NULL for acceleration and rotationRate on iOS 13.4

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 9 03:51:29 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=210261

            Bug ID: 210261
           Summary: [iOS] DeviceMotionEvent returning value of NULL for
                    acceleration and rotationRate on iOS 13.4
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: iPhone / iPad
                OS: iOS 13
            Status: NEW
          Severity: Critical
          Priority: P2
         Component: WebCore JavaScript
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: boris.stodic at daon.com

Created attachment 395934

  --> https://bugs.webkit.org/attachment.cgi?id=395934&action=review

sample for devicemotionevent

Hi everyone,

It seems like DeviceMotionEvent does not report accelerometer and rotation rate values correctly on iOS 13.4, for both Safari and Chrome. Even if permission is granted through requestPermission() method and event does get triggered, accelerometer and rotationRate value are defaulting to NULL.

The same few-liner sample code(sample will be attached with this bug report) is working on previous versions of iOS v13.3>.

I believe that in iOS 13.4 implementation of DeviceMotionEvent or DeviceMotionAPI is somehow broken. 

Few links which might be related to this issue:

https://trac.webkit.org/changeset/259601/webkit

https://bugs.webkit.org/show_bug.cgi?id=209831

In order to run the attached sample, a file has to be deployed on the https server. Steps to reproduce are:

1. Serve index.html on https
2. Load page
3. hit the button "Init DeviceMotion"
4. check browser console to see results for the event, event.acceleration, event.rotationRate

Thanks,

Boris

-- 
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/20200409/f1571f43/attachment.htm>


More information about the webkit-unassigned mailing list