Skip to content

Digital Credentials: Test that coordinator returns to idle after mid-flight abort#60262

Open
marcoscaceres wants to merge 1 commit into
web-platform-tests:masterfrom
marcoscaceres:digital-credentials-coordinator-state-test
Open

Digital Credentials: Test that coordinator returns to idle after mid-flight abort#60262
marcoscaceres wants to merge 1 commit into
web-platform-tests:masterfrom
marcoscaceres:digital-credentials-coordinator-state-test

Conversation

@marcoscaceres
Copy link
Copy Markdown
Contributor

Adds a regression test ensuring that after navigator.credentials.get() is aborted via AbortSignal mid-flight, a subsequent get() call works — i.e., the user agent's interaction state has returned to "idle".

The spec defines an interaction state machine for the credential request coordinator (§6.1). If the coordinator gets stuck in "requesting" after an abort, §6.2 step 2 would reject subsequent calls with NotAllowedError. The test catches that regression by calling get() with an AbortSignal, aborting it mid-flight, then calling get() again with a fresh signal. Both should reject with AbortError.

…-flight abort

Adds a regression test ensuring that after a get() call is aborted via
AbortSignal mid-flight, a subsequent get() call works (i.e., the user
agent's interaction state has returned to "idle" and is not stuck in
"requesting").

This guards against state-machine bugs where an aborted credential
request leaves the coordinator unable to accept new requests.
@marcoscaceres marcoscaceres changed the title [digital-credentials] Test that coordinator returns to idle after mid-flight abort Digital Credentials: Test that coordinator returns to idle after mid-flight abort May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants