WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
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
>
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