api.DeviceOrientationEvent is deprecated on Firefox, but this isn't mentioned on the page
Nobody has claimed this yet.
- Dominant language
- JSON
- Stars
- 5.8k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 186
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: https://github.com/mdn/content/commit/bcfc05aac40b47aecad69d44c54e33bf5f9b4e41
- Document last modified: 2026-02-09T18:04:48.000Z
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the DeviceOrientationEvent entry for the MDN page at en-us/web/api/deviceorientationevent and inspect the browser compatibility data behind its table. Verify the reported Firefox behavior using the cited console warning and references, then update the compatibility information so the table accurately reflects the supported or deprecated state.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, documentation, web-dev
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100