Re: [deviceorientation] Invalid IDL in DeviceMotionEventInit

> > Gecko does not mark these members optional.
> 
> Dictionary members are optional by default unless marked `required`. Are you perhaps confusing "optional" and "nullable"?

Yes, I mean "nullable."

> > Chromium's behavior when the optional flag is removed
> 
> Er... Chromium allows the invalid IDL? Is there a bug reported on that for Chromium?

Yes, Chromium allows the invalid IDL. For reference for the current behavior I recommend looking at [device_orientation/motion/optional-event-properties.html](https://chromium.googlesource.com/chromium/src/+/e2e7cd911060f081cec552e230701a2366b12d0d/third_party/WebKit/LayoutTests/device_orientation/motion/optional-event-properties.html).

There are no bugs that I can find currently filed for this mismatch with the WebIDL specification but I might be missing context here because I am not on the team responsible for the WebIDL bindings generator.

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/54#issuecomment-423772200 using your GitHub account

Received on Saturday, 22 September 2018 20:46:08 UTC