This exposes WebDriver commands for creating, removing, querying and setting readings for so-called virtual sensors: sensors that do not depend on underlying hardware or operating system support and can be used for testing.
The Generic Sensor API specification has had an Automation section since 2018. It defined several WebDriver extension commands for adding/removing/querying/updating what it called "mock sensors". The idea was the same: allow testing sensor APIs without depending on the availability of said sensors.
For a number of reasons (including some implementation-specific assumptions baked into the text), the previous version was never implemented, so testing the Generic Sensor APIs in WPT relied on Mojo interfaces being implemented as JS mocks, which made it pretty hard for other engines to run the same tests in case they wanted to implement this API.
We've rewritten the relevant section in the spec (including calling "mock sensors" "virtual sensors" now following WebAuthn's terminology), implemented the new version and converted the existing web tests to make use of them.
This feature implements WebDriver extension commands in ChromeDriver that are used in web-platform-tests and can also be used by ChromeDriver users. This feature is therefore not web-exposed, but it does intend to help increase adoption of the spec by making it possible for any implementation to run the existing web tests without having to use JS mocks that are heavily Mojo-based although not dependent on Mojo.
n/a
The new WebDriver extension commands are exposed in ChromeDriver's Python library. Future work includes exposing them to Selenium, Playwright and/or Puppeteer.
n/a, this is exposed through WebDriver. There have been changes to the Generic Sensor code in //content and //services, described in the design doc and under review by reillyg@.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
This is a debugging feature. It exposes new ChromeDriver and CDP endpoints, but the DevTools frontend has not been touched.
Shipping on desktop | 118 |
Shipping on Android | 118 |
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/DS0PR11MB73342BF79AC2F73824270FFCFE14A%40DS0PR11MB7334.namprd11.prod.outlook.com.
LGTM1
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADizRgYkZ%3DH3qe8DKZdcm1bLqYnGCLFpyX%3DCBGCV%3DmTWG3EJZg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/eb91049c-9d0f-44a2-bb4c-9987b12d34b0%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAL5BFfV%2BZEtq%3DfezcPuE1GgMLD8eKo_XQQtVc7t9WgxvxcaLJg%40mail.gmail.com.