Replace mediation "MUST NOT throw" prose with [[implicitMediation]] slot#511
Open
marcoscaceres wants to merge 4 commits into
Open
Replace mediation "MUST NOT throw" prose with [[implicitMediation]] slot#511marcoscaceres wants to merge 4 commits into
marcoscaceres wants to merge 4 commits into
Conversation
The previous prose said user agents "MUST NOT throw an error if the mediation member has a value other than required." This contradicted the upstream Credential Management spec, which throws TypeError in step 9 for conditional mediation on types that don't support it. That step fires before this spec's algorithms run, making the "MUST NOT throw" instruction unreachable. Replace with a declaration of [[implicitMediation]] = "required", which the Credential Management spec will respect (per w3c/webappsec-credential-management#298) by skipping the mediation support checks for this credential type. Closes #510
timcappalli
approved these changes
May 7, 2026
marcoscaceres
commented
May 7, 2026
TallTed
reviewed
May 11, 2026
Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Digital Credentials specification’s mediation requirements by removing unreachable “MUST NOT throw” prose and instead specifying implicit required mediation via an [[implicitMediation]] internal slot value, aligning DC’s behavior with upstream Credential Management processing.
Changes:
- Replaces the prior “MUST NOT throw” mediation paragraph with text describing implicit
"required"mediation via[[implicitMediation]]. - Updates the DigitalCredential interface introduction to reflect this mediation behavior in a single consolidated paragraph.
Comment on lines
1440
to
1442
| The <dfn>DigitalCredential</dfn> interface represents a conceptual | ||
| [=digital credential=]. | ||
| </p> |
Comment on lines
1443
to
+1445
| <p> | ||
| The {{DigitalCredential}} interface mandates [=user mediation=] for all | ||
| operations to ensure user control and consent. | ||
| </p> | ||
| <p> | ||
| To simplify the developer experience of {{CredentialsContainer/get()}} | ||
| calls involving a {{DigitalCredential}}, [=user agents=] MUST NOT throw | ||
| an error if the {{CredentialRequestOptions/mediation}} member is absent | ||
| or has a value other than {{CredentialMediationRequirement/"required"}}. | ||
| Similarly, in {{CredentialsContainer/create()}} calls involving a | ||
| {{DigitalCredential}}, [=user agents=] MUST NOT throw an error if the | ||
| {{CredentialCreationOptions/mediation}} member is absent or has a value | ||
| other than {{CredentialMediationRequirement/"required"}}. This makes | ||
| {{CredentialMediationRequirement/"required"}} mediation an implicit and | ||
| non-overridable behavior of the API. | ||
| operations to ensure user control and consent. The {{DigitalCredential}} |
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.
Closes #510
Summary
Replaces the paragraph that said user agents "MUST NOT throw an error if the mediation member has a value other than required" with a proper
[[implicitMediation]]internal slot declaration set to"required".Why
The previous prose contradicted the upstream Credential Management spec's step 9, which throws TypeError for
mediation: "conditional"with types that don't support it. That step fires before this spec's[[DiscoverFromExternalSource]]is called, making the "MUST NOT throw" instruction unreachable spec fiction.WebKit's implementation already ignores mediation for digital credentials (no TypeError). This change aligns the spec with both the implementation and the upstream algorithm.
Landing order
[[implicitMediation]]slot and modifies step 9)Related
The following tasks have been completed:
Implementation commitment:
Documentation and checks
Preview | Diff