Repository navigation
fix: don't hang WebAuthn requests on platform passkey failures - #52682
Merged
VerteDinde merged 4 commits intoAug 17, 2026
Merged
Conversation
4 of 7 tasks
VerteDinde
force-pushed
the
webauthn-passkeys-error-paths
branch
from
August 6, 2026 23:26
a8d5079 to
1953b28
Compare
VerteDinde
marked this pull request as ready for review
August 7, 2026 07:21
The request handlers ignore kAuthenticatorResponseInvalid from a kICloudKeychain-type authenticator, so every reject path left the page pending until the WebAuthn timeout. Report a terminal status instead, advertise ES256 via GetAlgorithms() so non-ES256 registrations are pre-filtered rather than routed into the base GetTouch() no-op, and log response-validation failures to the DevTools console.
…n routing Running the request/cancel callbacks can complete the request synchronously and destroy the delegate, so consume selection state before running them (same pattern as OnAccountSelected), guard the default dispatch against an already-consumed selection, and don't offer the platform passkeys discovery to cross-origin frames Apple's API cannot serve - other transports can still handle those requests.
Reject non-boolean values with a TypeError like the touchID options do (gin's converter silently coerced them), treat null/undefined as not set, and validate before applying so a throw leaves the existing configuration untouched. Also reset the process-global flag between spec suites.
VerteDinde
force-pushed
the
webauthn-passkeys-error-paths
branch
from
August 7, 2026 22:29
1953b28 to
8001c8f
Compare
MarshallOfSound
approved these changes
Aug 10, 2026
codebytere
approved these changes
Aug 11, 2026
Member
|
Heads up: Windows CI builds moved to new runners on Monday and the old ones have now been removed. This branch predates that, so its Windows build jobs still point at the old runners and will sit queued forever if CI runs again. Rebasing on |
|
Release Notes Persisted
|
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Follow-up to #51563.
The platform passkey authenticator reported its failures with statuses the FIDO request handlers ignore for its authenticator type, so an unparseable clientDataJSON, a cross-origin frame, an RP that doesn't accept ES256, or a malformed Apple response left
navigator.credentials.create()/get()pending until the WebAuthn timeout, in the worst case after a passkey had already been minted. Dispatching a selected authenticator could also complete the request synchronously and destroy the delegate while the selection code still touched its members, andconfigureWebAuthnsilently coerced non-booleanplatformPasskeysvalues.This reports terminal statuses instead (the page gets a prompt
NotAllowedError), advertises ES256 viaGetAlgorithms()so unsupported registrations are filtered before dispatch, consumes selection state before running dispatch callbacks, skips the passkeys discovery for cross-origin frames so other authenticators can still serve them, validatesplatformPasskeysstrictly, and logs DevTools errors on the failure paths that previously gave no signal. Docs and specs are updated to match.Checklist
Release Notes
Notes: Fixed WebAuthn platform passkey requests on macOS hanging until the request timeout when an operation failed, and a potential crash when selecting between Touch ID and platform passkeys.