Re: [deviceorientation] DeviceOrientationEvent: Define absolute's value on error (#139)

For posterity:

> * Gecko does not send any events if it cannot provide readings (e.g. when
>   there are no sensors available).

- EnableSensorNotifications() is a void function
  - https://searchfox.org/mozilla-central/rev/9bb5d5f55da6cc7163dd93825c25609b769822f9/hal/windows/WindowsSensor.cpp#99
  - https://searchfox.org/mozilla-central/rev/9bb5d5f55da6cc7163dd93825c25609b769822f9/hal/cocoa/CocoaSensor.mm#76
  - https://searchfox.org/mozilla-central/rev/9bb5d5f55da6cc7163dd93825c25609b769822f9/mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoAppShell.java#604
- I've also tested the latest Firefox stable release on a Windows laptop without sensors and the deviceorientation event wasn't fired.

> * WebKit only ships an iOS implementation, whose IDL does not even have an
>   absolute attribute.

- https://github.com/WebKit/WebKit/blob/469854527dff2f93b810a9be7b0be50b380183b5/Source/WebCore/dom/DeviceOrientationEvent.idl#L38

-- 
GitHub Notification of comment by rakuco
Please view or discuss this issue at https://github.com/w3c/deviceorientation/pull/139#issuecomment-1941482567 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 13 February 2024 13:10:00 UTC