Skip to content

api.DeviceOrientationEvent is deprecated on Firefox, but this isn't mentioned on the page #29409

@leandrumartin

Description

@leandrumartin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    data:apiCompat data for Web APIs. https://developer.mozilla.org/docs/Web/APIinfo neededThis needs more information to review or act on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions