Expose the GravitySensor API, which provides a 3-axis reading of the gravity force, to users.
Generic Sensor APIs, as well as other hardware-related APIs, can be controversial when it comes to interoperability because other browser engine developers have voiced privacy-related concerns. We believe the Chromium implementation addresses those concerns. Additionally, all the data exposed by this API can already be read by users in JavaScript by calculating gravity from the Accelerometer and LinearAccelerometer readings we already provide.
I'm recused from this intent, but via Mike West, I was glad to see that permissions API integration has been added to the design and that resolution clamping has already been discussed and adopted:Looking forward to seeing this ship.
On Monday, March 15, 2021 at 3:58:46 AM UTC-7 arnaud...@intel.com wrote:
Explainer
https://github.com/arskama/GravitySensor/blob/main/explainer.md
Specification
https://w3c.github.io/accelerometer/#gravitysensor-interface
API spec
Yes
Summary
Expose the GravitySensor API, which provides a 3-axis reading of the gravity force, to users.
Blink component
Blink>Sensor
Search tags
sensors, gravity, fugu
TAG review
https://github.com/w3ctag/design-reviews/issues/207
TAG review status
Issues addressed
Risks
Interoperability and Compatibility
Generic Sensor APIs, as well as other hardware-related APIs, can be controversial when it comes to interoperability because other browser engine developers have voiced privacy-related concerns. We believe the Chromium implementation addresses those concerns. Additionally, all the data exposed by this API can already be read by users in JavaScript by calculating gravity from the Accelerometer and LinearAccelerometer readings we already provide.
Gecko: Negative Mozilla has not been asked about this specific API, but have raised concerns about the Generic Sensor APIs, including Accelerometer.
WebKit: Negative (https://webkit.org/tracking-prevention/) Although Apple has not been specifically asked about this API, they are not part of the Devices & Sensors WG, and have generally been contrary to the Generic Sensor APIs.
Web developers: Positive (https://crbug.com/1163993)
Is this feature fully tested by web-platform-tests?
Yes
Tracking bug
https://bugs.chromium.org/p/chromium/issues/detail?id=1163993
Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5384099747332096
This intent message was generated by Chrome Platform Status.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/8df880de-6f34-4e3e-9547-5f0d6f536cb3n%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKXHy%3DcYySK-rWHjPAv90Dih6usCvB1w2sRKYrc4_rBD1%2BLkeQ%40mail.gmail.com.
First off, I'm not happy that this whole sensor subsection of the browser is shunned by Mozilla and Apple, and that common ground has been so hard to find. Still, given that Chromium already ships similar sensors, this is a reasonable addition that doesn't change the overall picture negatively.
LGTM3
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw-q72%3Dxf1JR1ibZ2qFxqtV4ZxeJoqoY1X9KnsdivWwAng%40mail.gmail.com.