Skip to content

Commit bf4dbab

Browse files
authored
Merge pull request #906 from agl/issue905
Add two abort paths for getting an assertion
2 parents f864d09 + eddf8ff commit bf4dbab

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

index.bs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,12 +1310,21 @@ When this method is invoked, the user agent MUST execute the following algorithm
13101310
:: [=set/For each=] |authenticator| in |issuedRequests| invoke the [=authenticatorCancel=] operation on
13111311
|authenticator| and [=set/remove=] |authenticator| from |issuedRequests|.
13121312

1313+
: If the user exercises a user-interface option to cancel the process,
1314+
:: [=set/For each=] |authenticator| in |issuedRequests| invoke the [=authenticatorCancel=] operation on |authenticator|
1315+
and [=set/remove=] |authenticator| from |issuedRequests|. Return a {{DOMException}} whose name is "{{NotAllowedError}}".
1316+
13131317
: If the {{CredentialRequestOptions/signal}} member is [=present=] and the [=AbortSignal/aborted flag=] is set to
13141318
[TRUE],
13151319
:: [=set/For each=] |authenticator| in |issuedRequests| invoke the [=authenticatorCancel=] operation on |authenticator|
13161320
and [=set/remove=] |authenticator| from |issuedRequests|. Then
13171321
return a {{DOMException}} whose name is "{{AbortError}}" and terminate this algorithm.
13181322

1323+
: If |issuedRequests| is empty, <code>|options|.{{PublicKeyCredentialRequestOptions/allowCredentials}}</code> is not empty, and no |authenticator| will become available for any [=public key credentials=] therein,
1324+
:: Indicate to the user that no eligible credential could be found. When the user acknowledges the dialog, return a {{DOMException}} whose name is "{{NotAllowedError}}".
1325+
1326+
Note: One way a platform can determine that no |authenticator| will become available is by examining the <code>{{transports}}</code> members of the present <code>{{PublicKeyCredentialDescriptor}}</code> [=list/items=] of <code>|options|.{{PublicKeyCredentialRequestOptions/allowCredentials}}</code>, if any. For example, if all <code>{{PublicKeyCredentialDescriptor}}</code> [=list/items=] list only <code>{{AuthenticatorTransport/internal}}</code>, but all internal |authenticator|s have been tried, then there is no possibility of satisfying the request. Alternatively, all <code>{{PublicKeyCredentialDescriptor}}</code> [=list/items=] may list <code>{{transports}}</code> that the platform does not support.
1327+
13191328
: If an |authenticator| becomes available on this platform,
13201329
:: Note: This includes the case where an |authenticator| was available upon |lifetimeTimer| initiation.
13211330

0 commit comments

Comments
 (0)