Bug 271098

Summary: Remove non-standard `DeviceMotionEvent.initDeviceMotionEvent`
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: annevk, cdumez, marcosc, rakuco, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=271891

Description Ahmad Saleem 2024-03-15 18:13:43 PDT
Hi Team,

While comparing HTML Spec with IDL files in WebKit, I noticed that following is not in web specification:

Web Spec: https://w3c.github.io/deviceorientation/#device-motion-event-api

WebKit Source: https://searchfox.org/wubkat/rev/e6b945d8d215583ba34dffcc8f93a0c1c2662c0b/Source/WebCore/dom/DeviceMotionEvent.idl

___

Note - Blink does not have this but Gecko does.

Also Blink removed it in following (2017): https://chromium.googlesource.com/chromium/src.git/+/0921e8319f228e406019b434701ac9f181ee8ea1

They also removed `DeviceOrientationEvent.initDeviceOrientationEvent` for which I will create separate bug to make it easier to revert if needed and manage stuff.

CCing @Anne - for his input.

Thanks!
Comment 1 Ahmad Saleem 2024-03-18 19:05:30 PDT
PR - https://github.com/WebKit/WebKit/pull/26001
Comment 2 Radar WebKit Bug Importer 2024-03-22 18:14:15 PDT
<rdar://problem/125271931>