Define "prepare credential requests" algorithm#420
Merged
Conversation
9 tasks
9 tasks
d02002d to
bb35ade
Compare
bb35ade to
0222f65
Compare
Collaborator
Author
|
Blocked on tests. |
webkit-commit-queue
pushed a commit
to marcoscaceres/WebKit
that referenced
this pull request
Jan 20, 2026
…if AbortSignal races with picker result rdar://163295172 https://bugs.webkit.org/show_bug.cgi?id=305363 Reviewed by Pascoe. Fix race and crash in CredentialRequestCoordinator by settling promises only after picker teardown and safely handling abort reasons. Ensure credential requests always settle after the picker UI has fully torn down. This change: - Defers promise settlement until the picker dismiss callback fires - Better handles aborts during presentation and teardown - Avoids capturing unprotected JSValues across async boundaries - Keeps coordinator state transitions more consistent (with better checks) It also more closely follows the spec: w3c-fedid/digital-credentials#420 w3c-fedid/digital-credentials#419 * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/get.tentative.https-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/non-fully-active.https-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/digital-credentials/non-fully-active.https.html: * Source/WebCore/Modules/identity/CredentialRequestCoordinator.cpp: (WebCore::CredentialRequestCoordinator::PickerStateGuard::PickerStateGuard): (WebCore::CredentialRequestCoordinator::PickerStateGuard::~PickerStateGuard): (WebCore::CredentialRequestCoordinator::setState): (WebCore::CredentialRequestCoordinator::prepareCredentialRequest): (WebCore::CredentialRequestCoordinator::handleDigitalCredentialsPickerResult): (WebCore:: const): (WebCore::CredentialRequestCoordinator::dismissPickerAndSettle): (WebCore::CredentialRequestCoordinator::abortPicker): (WebCore::CredentialRequestCoordinator::contextDestroyed): (WebCore::CredentialRequestCoordinator::~CredentialRequestCoordinator): (): Deleted. (WebCore::CredentialRequestCoordinator::presentPicker): Deleted. (WebCore::CredentialRequestCoordinator::finalizeDigitalCredential): Deleted. * Source/WebCore/Modules/identity/CredentialRequestCoordinator.h: * Source/WebCore/Modules/identity/DigitalCredential.cpp: (WebCore::DigitalCredential::discoverFromExternalSource): * Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations: Canonical link: https://commits.webkit.org/305868@main
jschanck
reviewed
Jan 21, 2026
9 tasks
mohamedamir
reviewed
Jan 21, 2026
mohamedamir
reviewed
Jan 21, 2026
|
Discussed in 21 January 2026 Series B call |
d11d30f to
14054cb
Compare
35336be to
0b7552c
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
marcoscaceres
commented
Mar 5, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
mohamedamir
reviewed
Mar 10, 2026
mohamedamir
reviewed
Mar 10, 2026
mohamedamir
reviewed
Mar 10, 2026
mohamedamir
reviewed
Mar 10, 2026
mohamedamir
reviewed
Mar 10, 2026
mohamedamir
approved these changes
Mar 10, 2026
mohamedamir
left a comment
Collaborator
There was a problem hiding this comment.
Thanks Marcos!
Looks great!
I have added some comments!
Feel free to resolve async if you agree on them or discuss on our next weekly!
Co-authored-by: Mohamed Amir Yosef <mamir@chromium.org>
anowardear062-svg
previously approved these changes
Mar 10, 2026
TallTed
reviewed
Mar 10, 2026
Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
marcoscaceres
commented
Mar 11, 2026
github-actions Bot
added a commit
that referenced
this pull request
Mar 12, 2026
SHA: 63bd023 Reason: push, by marcoscaceres Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
Added the "prepare credential requests" algorithm, detailing validation of each request, handling of unsupported protocols, error propagation, and abort signal integration.
Closes #432
Closes #249
Closes #220
Closes #207
Closes #159
The following tasks have been completed:
Implementation commitment:
Documentation and checks
Preview | Diff