← Chrome 159 reference · All APIs
v159 · webauthn · origin trial
Web Authentication Conditional UI Passive Mode
Conditional UI Passive Mode (also referred to as “Ambient” sign-in) lets a site invoke navigator.credentials.get() with mediation: "conditional" and uiMode: "passive" so the browser immediately surfaces available passkeys (and optionally saved passwords) in an unobtrusive, non-modal prompt — without requiring a sign-in form or autofill-tagged <input> on the page. If the user has no eligible credentials, no UI is shown and the promise stays pending.
This feature is an active Origin Trial on desktop platforms (Windows, macOS, Linux, ChromeOS) from Chrome 159 through Chrome 170, backed by the open specification pull request w3c/webauthn#2485. Enable it in one of two ways:
- Production Origin Trial: register for trial
WebAuthenticationAmbient(ChromeStatus Origin Trial ID942941171980697601) and serve the token via anOrigin-TrialHTTP header or<meta http-equiv="origin-trial">tag. - Local testing (no token): enable
chrome://flags/#web-authentication-ambient-signinor launch Chrome with--enable-features=WebAuthenticationAmbientSignin(Blink runtime featureWebAuthenticationAmbientin runtime_enabled_features.json5).
at a glance
| Shipped in | Chrome 159–170 Origin Trial on desktop (Windows, macOS, Linux, ChromeOS) — filed under “Origin trial” in the milestone=159 listing; Dev Trial started in Chrome 157 per the ChromeStatus API record |
|---|---|
| Origin trial / flag | Origin Trial WebAuthenticationAmbient (ID 942941171980697601, desktop 159–170); flag chrome://flags/#web-authentication-ambient-signin / --enable-features=WebAuthenticationAmbientSignin; Blink runtime feature WebAuthenticationAmbient (status: "experimental", origin_trial_os: ["win", "mac", "linux", "chromeos"] in runtime_enabled_features.json5) |
| Specification | w3c/webauthn PR #2485 — Conditional UI without autofill (open PR against WebAuthn Level 3); Credential Management Level 1 CredentialRequestOptions |
| Explainer & proposal | Explainer: Conditional UI without Autofill; initial issue w3c/webauthn#2144; TAG review w3ctag/design-reviews#1291 |
| Intents | Intent to Prototype; Intent to Experiment |
| Tracking bug | issues.chromium.org/532206357 |
| ChromeStatus | 5068149209825280 — Web Authentication Conditional UI Passive Mode |
why it exists
Standard WebAuthn Conditional UI (mediation: "conditional") integrates passkeys into form autofill, which works well on dedicated sign-in pages that contain an <input autocomplete="username webauthn"> field. On content pages without a login form — such as a paywalled article or an e-commerce catalog visited by a signed-out returning user — conditional autofill cannot surface credentials, while a modal WebAuthn dialog would interrupt users who have no passkey or do not wish to sign in. Passive Mode bridges that gap: it lets the page request silent discovery on load (without user activation), showing a quiet, permission-bubble-style suggestion in Chrome’s top-left chrome only when matching credentials exist, and remaining completely invisible otherwise.
Syntax
Relevant WebIDL from Blink’s credential_request_options.idl and w3c/webauthn PR #2485 (checked 2026-11-24):
enum CredentialUiModeRequirement {
"active",
"immediate",
"passive"
};
partial dictionary CredentialRequestOptions {
CredentialMediationRequirement mediation = "optional";
CredentialUiModeRequirement uiMode = "active";
PublicKeyCredentialRequestOptions publicKey;
boolean password = false;
AbortSignal signal;
};
partial enum ClientCapability {
"conditionalPassiveGet"
};
“If
options.uiModeispassive, the prompt SHOULD be minimally disruptive to other user activity such that the user does not have to interact with the prompt.”
Spec vs. Chrome 159 note: PR #2485 and the explainer also propose uiMode: "active" with mediation: "conditional" and capability "conditionalActiveGet", and name the spec enum CredentialUiMode. In Chrome 159’s Origin Trial, Blink defines CredentialUiModeRequirement and implements only Passive Mode (uiMode: "passive" + "conditionalPassiveGet"); "conditionalActiveGet" is not implemented in Blink’s public_key_credential.cc (verified 2026-11-24). Also note that the explainer’s prose briefly writes “the PublicKeyCredentialRequestOptions contains uiMode: 'passive'”, while its code example, PR #2485 algorithm, and Blink IDL all place uiMode on the top-level CredentialRequestOptions dictionary.
This reference documents three surfaces: CredentialRequestOptions.uiMode, ClientCapability "conditionalPassiveGet", and the passive conditional mediation ceremony (lifecycle, coexistence with autofill, errors, and security).
CredentialRequestOptions.uiMode — inputs and valid combinations
Input. uiMode is an optional member on the CredentialRequestOptions dictionary passed to navigator.credentials.get(options). In Blink’s IDL its enum type is CredentialUiModeRequirement (values "active", "immediate", "passive"; default "active"). To activate Conditional UI Passive Mode, you MUST pass both:
mediation: "conditional"uiMode: "passive"publicKey: a validPublicKeyCredentialRequestOptionsobject (withchallenge, optionalrpId, etc.)password: true(optional): includes savedPasswordCredentialentries alongside discoverable passkeys in the same passive bubble.signal(optional): anAbortSignalused to cancel the pending request (for example before launching a modal sign-in or passkey registration).
Output. navigator.credentials.get() returns a Promise<Credential | null>. When the user selects a passkey in the passive bubble (or autofill dropdown), the promise resolves with a PublicKeyCredential. If password: true was also passed and the user chooses a saved password, it resolves with a PasswordCredential. If the user has no eligible credentials or ignores/dismisses the passive bubble without interacting with autofill, the promise never resolves (unless aborted via signal or the document is unloaded).
Options passed to navigator.credentials.get() | Behavior in Chrome 159 (with trial/flag enabled) |
|---|---|
mediation: "conditional", uiMode: "passive", publicKey: { ... } | Triggers Passive Mode (Mediation::AMBIENT) for discoverable passkeys |
mediation: "conditional", uiMode: "passive", publicKey: { ... }, password: true | Triggers Passive Mode offering both discoverable passkeys and saved passwords |
mediation: "conditional", uiMode: "passive", password: true (no publicKey) | Rejects with NotSupportedError: "Conditional mediation is not supported for this credential type" |
mediation: "conditional", uiMode: "passive", publicKey: { ... } + any of otp, identity, federated, or publicKey.extensions.payment | Rejects with NotSupportedError: "Unsupported combination of credential types requested." |
mediation: "conditional", uiMode: "passive", publicKey: { ... } when trial/flag is off | Falls through to regular autofill Conditional UI (Mediation::CONDITIONAL); no error thrown |
ClientCapability — "conditionalPassiveGet"
Inputs & invocation. Call the static method await PublicKeyCredential.getClientCapabilities() (no arguments; exposed on Window in a secure context).
Outputs. Resolves to a plain record (Record<DOMString, boolean>) mapping capability names to booleans. When the Origin Trial token or flag is active on a supported desktop platform, the returned object includes the key "conditionalPassiveGet" with a boolean value indicating whether the client can present Passive Mode conditional UI. When the runtime feature WebAuthenticationAmbient is disabled, Blink explicitly removes "conditionalPassiveGet" from the returned map (so caps.conditionalPassiveGet is undefined).
Errors. Rejects with InvalidStateError if the calling document’s execution context is detached. In browsers predating getClientCapabilities() (Chrome < 133, Firefox < 135, Safari < 17.4), the static method itself is undefined, so guard with typeof PublicKeyCredential?.getClientCapabilities === "function".
OnGetClientCapabilitiesComplete); w3c/webauthn PR #2485; BCD api/PublicKeyCredential.json.
Passive conditional mediation ceremony — lifecycle and coexistence
In w3c/webauthn PR #2485, the authentication algorithm initializes a per-request flag conditionalNonAutofillTriggered = false and runs silent credential discovery:
- No user activation required. The page may call
navigator.credentials.get()immediately on page load. - Silent discovery. The browser checks for eligible discoverable credentials for the RP without showing UI. If none exist, no bubble is displayed and the promise remains unresolved.
- One-shot non-modal prompt. If eligible credentials exist and
conditionalNonAutofillTriggeredisfalse, the browser sets the flag totrueand displays a non-modal suggestion bubble (top-left of the Chrome desktop window, similar to a permission prompt) listing credential metadata such asnameanddisplayName. - Coexistence with autofill. If the page also contains an
<input>or<textarea>withautocomplete="username webauthn"(or"current-password webauthn"), dismissing or ignoring the passive bubble does not reject the promise: focusing that input still offers the same credentials in autofill UI under the same pending request. - Selection & settlement. Selecting a credential in either surface issues the assertion to that authenticator and resolves the promise once completed.
- Cancellation & exclusivity. Pass an
AbortController’ssignaland callcontroller.abort()before starting a modalnavigator.credentials.get()ornavigator.credentials.create()call, because WebAuthn allows only one pending request per document at a time.
#GetAssn-ConditionalMediation-NonAutofill); Explainer: Conditional UI without Autofill; Author reference demo script.js.
Errors and edge cases
| Condition | Exception | Notes / recovery |
|---|---|---|
Invalid enum value for uiMode (e.g. typo) | TypeError | Standard WebIDL enum validation rejects invalid strings |
mediation: "conditional" without publicKey (e.g. password: true only) | NotSupportedError (DOMException) | Include a publicKey request alongside password: true |
Combined with otp, identity, federated, or publicKey.extensions.payment | NotSupportedError (DOMException) | Only publicKey (and optionally password: true) is permitted in Chromium’s passive mode |
publicKey.extensions.remoteDesktopClientOverride set with conditional mediation | NotAllowedError (DOMException) | Disallowed on conditional mediation requests |
signal is already aborted or aborts while pending | signal.reason (default AbortError) | Expected during cleanup before modal create() or get() |
Insecure context or cross-origin iframe missing publickey-credentials-get policy | NotAllowedError / SecurityError (DOMException) | Serve over HTTPS and delegate allow="publickey-credentials-get" if embedded |
| Another WebAuthn request is already pending | OperationError (DOMException) | Abort the passive request via AbortController first |
Context, permissions, and exposure
- Exposure:
Windowonly (navigator.credentialsandPublicKeyCredentialare not exposed in Workers). - Secure context: Required (
https://orlocalhost). - Cross-origin iframes: Permitted when the embedding frame delegates the
publickey-credentials-getPermissions Policy (allow="publickey-credentials-get"). In Chrome, the passive bubble title displays the requesting frame’s origin so users can verify which site is requesting sign-in. - User activation: Not required — passive mode is specifically designed to be invoked on page load.
- Platform scope in Chrome 159: Desktop only (Windows, macOS, Linux, ChromeOS) during the Origin Trial.
Examples
No interactive demo exists yet on the Chrome Platform Showcase for Chrome 159. The feature owner’s standalone prototype demo is live at kenrb.github.io/test/ambient/.
Feature detection and passive sign-in on page load
let passiveController = null;
async function startPassiveSignIn(challengeBytes) {
if (typeof PublicKeyCredential?.getClientCapabilities !== "function") {
return;
}
const caps = await PublicKeyCredential.getClientCapabilities();
if (!caps.conditionalPassiveGet) {
// Passive mode unavailable (no Origin Trial / flag or unsupported browser).
// Fall back to explicit sign-in link or standard conditional autofill.
return;
}
passiveController = new AbortController();
try {
const credential = await navigator.credentials.get({
signal: passiveController.signal,
mediation: "conditional",
uiMode: "passive",
publicKey: {
challenge: challengeBytes,
rpId: window.location.hostname,
userVerification: "preferred",
},
// Optional: also surface saved passwords in the same passive bubble.
password: true,
});
if (credential?.type === "public-key") {
// Send assertion to server to verify challenge and establish a session.
await verifyPasskeyAssertion(credential);
} else if (credential?.type === "password") {
await verifyPasswordCredential(credential);
}
} catch (err) {
if (err.name === "AbortError") {
return; // Cancelled intentionally (e.g. user clicked Sign In or Create Passkey).
}
console.error("Passive sign-in failed:", err);
}
}
// Always abort a pending passive request before calling modal create() or get():
async function onExplicitSignInClick() {
passiveController?.abort();
passiveController = null;
// Proceed with modal sign-in...
}
Source: Explainer: Conditional UI without Autofill; Author prototype script.js; Blink public_key_credential.cc.
Coexisting with a sign-in form (passive bubble + autofill)
When a page invokes navigator.credentials.get() with mediation: "conditional" and uiMode: "passive" alongside a login form, ignoring the passive bubble keeps the request active for autofill:
<!-- If the user ignores the passive bubble, focusing this input still offers
the same credentials from the single pending conditional request. -->
<form action="/login" method="post">
<label for="acct">Username</label>
<input id="acct" name="username" autocomplete="username webauthn" required>
<button type="submit">Continue</button>
</form>
Source: w3c/webauthn PR #2485; Explainer: Conditional UI without Autofill.
Browser compatibility
| Browser | Conditional UI Passive Mode | Evidence / notes | getClientCapabilities() (BCD) |
|---|---|---|---|
| Chrome (Desktop) | 159–170 (Origin Trial) | Origin Trial WebAuthenticationAmbient on Windows, macOS, Linux, ChromeOS; behind chrome://flags/#web-authentication-ambient-signin since 157 per ChromeStatus | 133 |
| Chrome (Android) / WebView | No | Not included in the desktop-only Origin Trial (origin_trial_os excludes Android in runtime_enabled_features.json5) | 133 |
| Edge | Unknown | Chromium-based; no independent Edge ship signal or BCD entry yet | 133 (mirror) |
| Firefox | No | Mozilla standards position #1475: No signal (awaiting response) | 135 |
| Safari | No | WebKit standards position #729: No signal (awaiting response) | 17.4 |
Security and privacy
- No credential-presence oracle: Just like standard Conditional UI, when the user has no eligible credentials for the Relying Party, no UI is displayed and the returned promise never resolves or rejects. A site cannot probe whether a signed-out visitor owns a passkey or saved password.
- Clickjacking mitigation: Chrome renders the passive bubble using its permissions prompt infrastructure, which applies an input-delay clickjacking protection preventing clicks on bubble buttons immediately after display.
- Cross-origin framing clarity: When invoked inside a cross-origin iframe (requiring the
publickey-credentials-getPermissions Policy), Chrome displays the requesting frame’s origin in the bubble title so users can verify the authentic recipient of the credential. - Review status: ChromeStatus lists Chromium’s security review, privacy review, and W3C TAG review #1291 as Pending (checked 2026-11-24).
Specifications
| Specification | Section / Proposal |
|---|---|
| Web Authentication: An API for accessing Public Key Credentials Level 3 | PR #2485 — Conditional UI without autofill (open pull request) |
| Credential Management Level 1 (Editor’s Draft) | CredentialRequestOptions dictionary |
see also
- Explainer — Conditional UI without Autofill
- Author prototype demo — Web Authentication Ambient Mode Passkey Demo
- MDN —
CredentialsContainer.get() - MDN —
PublicKeyCredential.getClientCapabilities() - w3c/webauthn#2144 — Original proposal issue
- ChromeStatus — Web Authentication Conditional UI Passive Mode (5068149209825280)