Primary eng (and PM) emails
Summary
Remove the DeviceOrientationEvent.initDeviceOrientationEvent and DeviceMotionEvent.initDeviceMotionEvent functions.
Motivation
These methods are not defined in the DeviceOrientation Event specification. Measurements indicate that they have no usage and they can be entirely replaced by the DeviceOrientationEvent and DeviceMotionEvent constructors that are being shipped in parallel to this intent.
Compatibility And Interoperability Risk
Chrome has supported Device Orientation since M-7. These unspecified functions were shipped on all WebKit platforms at the time (Chrome and Mobile Safari). UseCounters indicate that these functions have zero usage.
Edge: Deprecated ("As of Microsoft Edge, the createEvent()/initEvent() constructor pattern for synthetic events is deprecated.")
Firefox: Shipped
Safari: Shipped
Web developers: No signals
Alternative implementation suggestion for web developers
Sites which wish to generate synthetic DeviceOrientationEvents and DeviceMotionEvents may use the constructors which are shipping in parallel to this removal.
Usage information from UseCounter
No usage. DeviceOrientationEvent.initDeviceOrientationEvent metrics. DeviceMotionEvent.initDeviceMotionEvent metrics.
OWP launch tracking bug
https://bugs.chromium.org/p/chromium/issues/detail?id=697598
Entry on the feature dashboard
Based on discussion on the W3C Device Orientation spec GitHub Issue Tracker I have updated the feature dashboard with the support and skepticism from other vendors:Edge: Public supportFirefox: Public support
Safari: Public skepticism
--
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+unsubscribe@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.