v157 · webauthn · edge cases & migration
Request shape matrix
What happens at the edges: passive plus credential types Chromium refuses to combine, passwords without a passkey request, the spec’s sibling 'active' value, 'immediate' under conditional mediation, an unknown value, and the pre-146 prototype shape that no longer means “passive”. Each row runs live; nothing that would open a modal is fired.
run real request shapes
Every row calls navigator.credentials.get() for real. A request still pending after 1200 ms is aborted by the page and reported as pending — the correct outcome for conditional mediation when you have no credential for this site. Shapes that would open a modal picker (e.g. mediation: 'optional') are deliberately not run.
probing…
| shape | expected, flag on | expected, flag off | observed here | run |
|---|
No rows run yet.
migration notes
- Feature-detection key renamed. Chrome 153 with the flag reports
ambientGet: true; Chromium main now reports the spec nameconditionalPassiveGet(PR #2485). Check both during the transition:caps.conditionalPassiveGet || caps.ambientGet. - Opt-in became explicit. Until Chrome 146 the prototype treated any conditional request that also asked for passwords as ambient when the flag was on (per the Chromium team’s own sample). From 146 you must pass
uiMode: 'passive'; an old-style{ mediation: 'conditional', password: true, publicKey }is plain autofill again. - Unsupported browsers degrade safely. Engines that don’t know passive mode either ignore the member or (Chromium without the flag) accept it and run ordinary conditional mediation — never a modal. That is why, unlike
uiMode: 'immediate', a stray passive request cannot ambush users with a dialog. - Kill switch. If the browser-side feature is disabled while the renderer still accepts the value, Chromium downgrades the request to conditional mediation “so that sites using conditional UI with login forms are not broken” (authenticator_common_impl.cc).
references
- ChromeStatus entry (5068149209825280)
- Explainer: Conditional UI without Autofill
- w3c/webauthn PR #2485 — spec text (uiMode passive/active, conditionalPassiveGet)
- Credential Management: CredentialRequestOptions.uiMode
- Chromium authentication_credentials_container.cc (passive/ambient request checks)
- Chromium team sample (pre/post-146 request shapes)