[Generic Sensor]Sensor is not present when includeGravity is false
Reported by
canx....@intel.com,
Dec 13 2016
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36 Steps to reproduce the problem: Test case:https://github.com/Honry/demo/blob/gh-pages/tests/sensors/Accelerometer.https.html Test Name:Test that when construct Accelerometer with includeGravity that is set to false, the reading is different from the one with default Accelerometer. Construct Accelerometer with includeGravity that is set to false. What is the expected behavior? Start and stop function should works fine. What went wrong? Sensor is not present on the platform. Did this work before? N/A Does this work in other browsers? N/A Chrome version: 57.0.2946.0 Channel: dev OS Version: Ubuntu 16.04 Flash Version: Shockwave Flash 23.0 r0 This issue cannot reproduce on Android,Windows 8.1 and Windows 10
,
Dec 14 2016
Cc'ing mikhail.pozdnyakov@ from Issue 661478 for help in triaging this further.
,
Dec 20 2016
I'm so sorry.I double check this issue, it also reproduced on on Windows 8.1 and Windows 10 platforms.
,
Dec 21 2016
Linear acceleration is not supported by Windows Sensor APIs, therefore, when sensor is constructed with includeGravity=false, Sensor.onerror will be invoked with 'NotFoundError'.
,
Jan 9 2017
|
|||
►
Sign in to add a comment |
|||
Comment 1 by ranjitkan@chromium.org
, Dec 13 2016