[webdriver] Better signature counter support for WebAuthn virtual authenticators
- Category
- Miscellaneous
- Type
- New or changed feature
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
WPT details: We'll land WPTs once the feature lands.
Summary
The Web Authentication API specifies a series of webdriver commands to support testing. These commands set up "virtual authenticators" that behave as if they were connected to the user agent and can service WebAuthn operations. https://github.com/w3c/webauthn/pull/2382 introduced two changes related to signature counters: * The Add Credential command can now take a null `signCount` parameter. This specifies that the virtual authenticator will set the signature counter to zero on every subsequent get assertion operation, matching the behaviour of synced passkey providers. * A new `signCount` parameter to the Set Credential Properties command that lets callers override the signature counter on the authenticator to test simulated duplicated authenticators.
Motivation
Better support testing code that checks signature counters.
Standards & signals
- Specification: https://github.com/w3c/webauthn/pull/2382
- Firefox: N/A — Too small of a feature to wait for this.
- Safari: N/A — Too small of a feature to wait for this.
- Web developers: No signals
- Tracking bug: https://crbug.com/533056772
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=webdriver-better-signature-counter-support-for-webauthn-virtual-authenticators
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+%5Bwebdriver%5D%20Better%20signature%20counter%20support%20for%20WebAuthn%20virtual%20authenticators
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=%5Bwebdriver%5D%20Better%20signature%20counter%20support%20for%20WebAuthn%20virtual%20authenticators
- Baseline status: https://webstatus.dev/?q=%5Bwebdriver%5D%20Better%20signature%20counter%20support%20for%20WebAuthn%20virtual%20authenticators
Explainers: https://github.com/w3c/webauthn/issues/2363