Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 35 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -765,21 +765,54 @@ <h3>
|requests|, a {{Promise}} |promise:Promise|, and an optional
{{AbortSignal}} |signal:AbortSignal|:
</p>
<ol>
<ol class="algorithm">
<li>
<aside class="issue">
See <a href=
"https://github.com/w3c-fedid/digital-credentials/pull/420">Pull
request #420</a>.
</aside>
</li>
<li>If |document| stops being [=Document/fully active=], [=credential
request coordinator/abort the credential request=] with an {{"AbortError"}}
{{DOMException}}.
</li>
</ol>
<h3>
Abort the credential request
</h3>
<p>
To be written.
To <dfn data-dfn-for="credential request coordinator">abort the
credential request</dfn> given a JavaScript value or {{DOMException}} |error|:
</p>
<ol class="algorithm">
<li>If the [=credential request coordinator=]'s [=credential request
coordinator/active promise=] is `null`, return.
</li>
<li>Let |activePromise| be the [=credential request coordinator=]'s
[=credential request coordinator/active promise=].
</li>
<li>If the [=credential request coordinator=] is in the "[=credential
request coordinator/requesting=]" [=credential request
coordinator/interaction state=]:
<ol>
<li>Set the [=credential request coordinator=] [=credential request
coordinator/interaction state=] to "[=credential request
coordinator/aborting=]".
</li>
<li>Dismiss the [=credential chooser=].
<p class="note">
Dismissal can fail (e.g., if the [=credential chooser=] was
destroyed due to memory pressure), but the [=coordinator=]
proceeds to complete the credential request regardless.
</p>
</li>
</ol>
</li>
<li>[=credential request coordinator/Complete credential request with=]
|activePromise| and |error|.
</li>
</ol>
<h3>
Complete credential request with error
</h3>
Expand Down