WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
311790
Digital Credentials: prepare credential requests rejects with wrong error code and synchronously instead of queuing a task
https://bugs.webkit.org/show_bug.cgi?id=311790
Summary
Digital Credentials: prepare credential requests rejects with wrong error cod...
Marcos Caceres
Reported
2026-04-08 22:25:29 PDT
When a credential request is already in progress, the spec (
https://w3c-fedid.github.io/digital-credentials/
— "prepare credential requests" step 2) says: "Queue a global task on the DOM manipulation task source given |global| to reject |promise| with a "NotAllowedError" DOMException." WebKit's implementation (CredentialRequestCoordinator.cpp:128–129) does two things wrong: 1. Rejects with `InvalidStateError` instead of `NotAllowedError`. 2. Rejects synchronously instead of queuing a task on the DOM manipulation task source. Fix: replace the synchronous `promise.reject(ExceptionCode::InvalidStateError, ...)` with a queued task that rejects with `NotAllowedError`.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-04-15 22:26:12 PDT
<
rdar://problem/174895437
>
Marcos Caceres
Comment 2
2026-05-03 23:37:00 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/64150
EWS
Comment 3
2026-06-27 00:32:44 PDT
Committed
315957@main
(6d96204ed552): <
https://commits.webkit.org/315957@main
> Reviewed commits have been landed. Closing PR #64150 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug