Skip to content

Commit 3ceed42

Browse files
authored
Change from getClientExtensionResults function to clientExtensionResults attribute (#810)
* Change from getClientExtensionResults function to clientExtensionResults attribute * Remove unnecessary internal slot [[clientExtensionsResults]] * Make a very dense sentence slightly less dense
1 parent 195a8fb commit 3ceed42

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

index.bs

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ that are returned to the caller when a new credential is created, or a new asser
620620
interface PublicKeyCredential : Credential {
621621
[SameObject] readonly attribute ArrayBuffer rawId;
622622
[SameObject] readonly attribute AuthenticatorResponse response;
623-
AuthenticationExtensionsClientOutputs getClientExtensionResults();
623+
[SameObject] readonly attribute AuthenticationExtensionsClientOutputs clientExtensionResults;
624624
};
625625
</xmp>
626626
<dl dfn-type="attribute" dfn-for="PublicKeyCredential">
@@ -639,10 +639,11 @@ that are returned to the caller when a new credential is created, or a new asser
639639
the {{PublicKeyCredential}} was created in response to {{CredentialsContainer/get()}}, and this attribute's value
640640
will be an {{AuthenticatorAssertionResponse}}.
641641

642-
: {{PublicKeyCredential/getClientExtensionResults()}}
643-
:: This operation returns the value of {{PublicKeyCredential/[[clientExtensionsResults]]}}, which is a [=map=] containing
644-
[=extension identifier=][=client extension output=] entries produced by the extension's
645-
[=client extension processing=].
642+
: <dfn>clientExtensionResults</dfn>
643+
:: This attribute contains a [=map=] of [=extension identifier=][=client extension output=] entries, produced by the
644+
[=client extension processing=] of [=client extensions=] requested by the [=[RP]=] upon invocation of either
645+
{{CredentialsContainer/create()|navigator.credentials.create()}} or
646+
{{CredentialsContainer/get()|navigator.credentials.get()}}.
646647

647648
: <dfn>\[[type]]</dfn>
648649
:: The {{PublicKeyCredential}} [=interface object=]'s {{Credential/[[type]]}} [=internal slot=]'s value is the string
@@ -663,11 +664,6 @@ that are returned to the caller when a new credential is created, or a new asser
663664
the format or length of this identifier, except that it MUST be sufficient for the platform to uniquely select a key.
664665
For example, an authenticator without on-board storage may create identifiers containing a [=credential private key=]
665666
wrapped with a symmetric key that is burned into the authenticator.
666-
667-
: <dfn>\[[clientExtensionsResults]]</dfn>
668-
:: This [=internal slot=] contains the results of processing client extensions requested by the [=[RP]=] upon the
669-
[=[RP]=]'s invocation of either {{CredentialsContainer/create()|navigator.credentials.create()}} or
670-
{{CredentialsContainer/get()|navigator.credentials.get()}}.
671667
</dl>
672668

673669
{{PublicKeyCredential}}'s [=interface object=] inherits {{Credential}}'s implementation of
@@ -1014,9 +1010,8 @@ When this method is invoked, the user agent MUST execute the following algorithm
10141010
: {{AuthenticatorAttestationResponse/attestationObject}}
10151011
:: |attestationObject|
10161012

1017-
: {{PublicKeyCredential/[[clientExtensionsResults]]}}
1018-
:: A new {{ArrayBuffer}}, created using |global|'s [=%ArrayBuffer%=], containing the bytes of
1019-
<code>|credentialCreationData|.[=credentialCreationData/clientExtensionResults=]</code>.
1013+
: {{PublicKeyCredential/clientExtensionResults}}
1014+
:: <code>|credentialCreationData|.[=credentialCreationData/clientExtensionResults=]</code>.
10201015

10211016
1. Return |pubKeyCred|.
10221017

@@ -1359,9 +1354,8 @@ When this method is invoked, the user agent MUST execute the following algorithm
13591354
[=%ArrayBuffer%=], containing the bytes of
13601355
<code>|assertionCreationData|.[=assertionCreationData/userHandleResult=]</code>.
13611356

1362-
: {{PublicKeyCredential/[[clientExtensionsResults]]}}
1363-
:: A new {{ArrayBuffer}}, created using |global|'s [=%ArrayBuffer%=], containing the bytes of
1364-
<code>|assertionCreationData|.[=assertionCreationData/clientExtensionResults=]</code>.
1357+
: {{PublicKeyCredential/clientExtensionResults}}
1358+
:: <code>|assertionCreationData|.[=assertionCreationData/clientExtensionResults=]</code>.
13651359

13661360
1. Return |pubKeyCred|.
13671361

@@ -3747,7 +3741,7 @@ Supported [=client extensions=] are recorded as a dictionary in the [=client dat
37473741
{{CollectedClientData/clientExtensions}}. For each such extension, the client adds an entry to this dictionary with the
37483742
[=extension identifier=] as the key, and the extension's [=client extension input=] as the value.
37493743

3750-
Likewise, the [=client extension outputs=] are represented as a dictionary in the result of {{PublicKeyCredential/getClientExtensionResults()}}
3744+
Likewise, the [=client extension outputs=] are represented as a dictionary in the {{PublicKeyCredential/clientExtensionResults}} value,
37513745
with [=extension identifiers=] as keys, and the <dfn>client extension output</dfn> value of each extension as the value.
37523746
Like the [=client extension input=], the [=client extension output=] is a value that can be encoded in JSON.
37533747

0 commit comments

Comments
 (0)