Bug 271098 - Remove non-standard `DeviceMotionEvent.initDeviceMotionEvent`
Summary: Remove non-standard `DeviceMotionEvent.initDeviceMotionEvent`
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-03-15 18:13 PDT by Ahmad Saleem
Modified: 2024-03-31 22:38 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>