Re: [whatwg/dom] document.createEvent() should maybe not be conditional upon exposure (#952)

shannonbooth left a comment (whatwg/dom#952)

For some extra information that I noticed in  #1391 that this also impacts the specified behaviour for DeviceMotionEvent which is marked `SecureContext` in the IDL definition.

Chromium seems to not expose DeviceMotionEvent in non-SecureContexts  whereas Gecko and WebKit do not seem to implement that.

From testing, it seems that no browser (including Chromium when DeviceMotionEvent is not exposed on window in non secure contexts) currently throws on `document.createEvent('devicemotionevent')`.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/952#issuecomment-3095596245
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/952/3095596245@github.com>

Received on Monday, 21 July 2025 07:42:23 UTC