-
Notifications
You must be signed in to change notification settings - Fork 2.5k
api.DeviceOrientationEvent is deprecated on Firefox, but this isn't mentioned on the page #29409
Description
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent
What specific section or headline is this issue about?
Browser compatibility
What information was incorrect, unhelpful, or incomplete?
The MDN page for DeviceOrientationEvent has outdated compatibility information for Firefox on desktop. My browser shows that it's deprecated and non-functional (see below for details), but the page says it's still supported and fully compatible.
What did you expect to see?
The compatibility table should say that Firefox does not support the device orientation API and that it is deprecated.
Do you have any supporting links, references, or citations?
When I copy and paste the example code in the DeviceOrientationEvent page into my Firefox (version 149.0.0.0, Windows 11) dev tools console, I get a warning saying Use of the orientation sensor is deprecated.. This lines up sites using it not working on Firefox, for example tilting the device to pour the teapot at google.com/teapot. This is even with the device.sensors.orientation.enabled flag in about:config enabled, so it really does seem to be fully deprecated and completely non-functional in Firefox, at least for Windows.
This seems to have been the case for a few years, according to this Stack Overflow thread.
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/api/deviceorientationevent - MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/api/deviceorientationevent/index.md
- Last commit: mdn/content@bcfc05a
- Document last modified: 2026-02-09T18:04:48.000Z