w3c / sensors

Generic Sensor API
https://www.w3.org/TR/generic-sensor/
Other
127 stars 59 forks source link

Automation: Remove "virtual sensor type" from virtual sensor metadata #475

Closed rakuco closed 10 months ago

rakuco commented 10 months ago

This practically untangles the concepts in the Automation section from the rest of the specification, which helps the Device Orientation API specification adopt it as discussed in w3c/deviceorientation#122.

Now a sensor type itself can optionally define a "virtual sensor type", a string. It is the same string used to refer to a given virtual sensor type in the WebDriver extension commands.

In practice, this means that:

There are no user-visible changes or changes to the WebDriver extension commands, it is only the concepts and data structures used internally in the specification that have changed a little.

Derived specifications will need to be adjusted accordingly once this pull request is merged.


Preview | Diff

rakuco commented 10 months ago

(FWIW I think this change makes sense regardless of w3c/deviceorientation#124)