Open Bug 1891249 Opened 1 year ago Updated 1 year ago

Device Orientation API: Consider adding WebDriver support

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: rakuco, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0

Steps to reproduce:

See https://w3c.github.io/deviceorientation/#automation, which covers some WebDriver endpoints that are helpful for providing fake readings useful for testing the API. We currently use in web-platform-tests, as this is the only way to make sure that this API is reporting the right events in a predictable way that does not depend on actual hardware.

To be clear, https://w3c.github.io/deviceorientation/#automation relates to https://w3c.github.io/sensors/#automation since both specs use similar automation concepts and sensors, but special care has been taken to avoid making the Device Orientation spec depend on the Generic Sensors one and on definitions from other sections of the latter.

WPT's test_driver already has support for it in https://web-platform-tests.org/writing-tests/testdriver.html#sensors

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.