← 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.

Limited availability — Origin Trial in Chrome 159 (desktop only); not Baseline (parent WebAuthn is Baseline Widely available)

  • Chrome · 159–170 Origin Trial (desktop)
  • Edge · No release / no BCD entry
  • Firefox · No signal
  • Safari · No signal

Passive Mode has no dedicated web-feature id or BCD entry yet (checked 2026-11-24 against BCD api/CredentialsContainer.json and BCD api/PublicKeyCredential.json). The parent WebAuthn web-feature is Baseline Widely available since 2024-03-07 per webstatus.dev, which does not cover uiMode: "passive" or conditionalPassiveGet. Always feature-detect via PublicKeyCredential.getClientCapabilities() and retain an explicit sign-in path.

Origin Trial (Desktop Chrome 159–170) — draft API subject to change.

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:

at a glance

Shipped inChrome 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 / flagOrigin 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)
Specificationw3c/webauthn PR #2485 — Conditional UI without autofill (open PR against WebAuthn Level 3); Credential Management Level 1 CredentialRequestOptions
Explainer & proposalExplainer: Conditional UI without Autofill; initial issue w3c/webauthn#2144; TAG review w3ctag/design-reviews#1291
IntentsIntent to Prototype; Intent to Experiment
Tracking bugissues.chromium.org/532206357
ChromeStatus5068149209825280 — 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.

Source: Explainer: Conditional UI without Autofill; ChromeStatus motivation (5068149209825280).

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.uiMode is passive, 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).

Source: Blink credential_request_options.idl; w3c/webauthn PR #2485; Explainer: Conditional UI without Autofill.

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:

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).

Option combinations for uiMode: "passive" in Chromium’s authentication_credentials_container.cc
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: trueTriggers 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.paymentRejects with NotSupportedError: "Unsupported combination of credential types requested."
mediation: "conditional", uiMode: "passive", publicKey: { ... } when trial/flag is offFalls through to regular autofill Conditional UI (Mediation::CONDITIONAL); no error thrown
Source: Blink authentication_credentials_container.cc (verified 2026-11-24); w3c/webauthn PR #2485.

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".

Source: Blink public_key_credential.cc (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:

  1. No user activation required. The page may call navigator.credentials.get() immediately on page load.
  2. 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.
  3. One-shot non-modal prompt. If eligible credentials exist and conditionalNonAutofillTriggered is false, the browser sets the flag to true and displays a non-modal suggestion bubble (top-left of the Chrome desktop window, similar to a permission prompt) listing credential metadata such as name and displayName.
  4. Coexistence with autofill. If the page also contains an <input> or <textarea> with autocomplete="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.
  5. Selection & settlement. Selecting a credential in either surface issues the assertion to that authenticator and resolves the promise once completed.
  6. Cancellation & exclusivity. Pass an AbortController’s signal and call controller.abort() before starting a modal navigator.credentials.get() or navigator.credentials.create() call, because WebAuthn allows only one pending request per document at a time.
Source: w3c/webauthn PR #2485 (#GetAssn-ConditionalMediation-NonAutofill); Explainer: Conditional UI without Autofill; Author reference demo script.js.

Errors and edge cases

Rejection and throw conditions for Passive Mode requests
ConditionExceptionNotes / recovery
Invalid enum value for uiMode (e.g. typo)TypeErrorStandard 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.paymentNotSupportedError (DOMException)Only publicKey (and optionally password: true) is permitted in Chromium’s passive mode
publicKey.extensions.remoteDesktopClientOverride set with conditional mediationNotAllowedError (DOMException)Disallowed on conditional mediation requests
signal is already aborted or aborts while pendingsignal.reason (default AbortError)Expected during cleanup before modal create() or get()
Insecure context or cross-origin iframe missing publickey-credentials-get policyNotAllowedError / SecurityError (DOMException)Serve over HTTPS and delegate allow="publickey-credentials-get" if embedded
Another WebAuthn request is already pendingOperationError (DOMException)Abort the passive request via AbortController first
Source: Blink authentication_credentials_container.cc; WebAuthn Level 3 — Get an assertion.

Context, permissions, and exposure

Source: ChromeStatus API record (5068149209825280); Explainer — Cross-origin iframes; Blink runtime_enabled_features.json5.

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

Support for Conditional UI Passive Mode (uiMode: "passive" and conditionalPassiveGet). BCD has no entry for Passive Mode yet; data comes from ChromeStatus, Blink runtime flags, and standards positions (checked 2026-11-24). Parent getClientCapabilities() versions are from BCD.
BrowserConditional UI Passive ModeEvidence / notesgetClientCapabilities() (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 ChromeStatus133
Chrome (Android) / WebViewNoNot included in the desktop-only Origin Trial (origin_trial_os excludes Android in runtime_enabled_features.json5)133
EdgeUnknownChromium-based; no independent Edge ship signal or BCD entry yet133 (mirror)
FirefoxNoMozilla standards position #1475: No signal (awaiting response)135
SafariNoWebKit standards position #729: No signal (awaiting response)17.4
Source: ChromeStatus API record (5068149209825280); BCD api/PublicKeyCredential.json; BCD api/CredentialsContainer.json; webstatus.dev WebAuthn.

Security and privacy

Source: ChromeStatus security_risks & review status; Explainer: Conditional UI without Autofill; w3ctag/design-reviews#1291.

Specifications

see also