Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #624 - Change PublicKeyCredential.clientExtensionResults to an operation #633

Merged
merged 1 commit into from
Oct 18, 2017

Conversation

jcjones
Copy link
Contributor

@jcjones jcjones commented Oct 11, 2017

The attribute clientExtensionResults is a typedef of record<DOMString, any>.
The WebIDL spec says "Records must not be used as the type of an attribute
or constant", so this is not legal.

This commit changes the attribute clientExtensionResults into an operation
getClientExtensionResults().

This resolves #624.


Preview | Diff

… operation

The attribute `clientExtensionResults` is a typedef of `record<DOMString, any>`.
The WebIDL spec says "Records must not be used as the type of an attribute
or constant", so this is not legal.

This commit changes the attribute `clientExtensionResults` into an operation
`getClientExtensionResults()`.
Copy link
Contributor

@AngeloKai AngeloKai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agreed that we would need to change from an attribute to a record.

@nadalin
Copy link
Contributor

nadalin commented Oct 14, 2017

@jyasskin @equalsJeffH please review as we need to get this one in ASAP

Copy link
Contributor

@equalsJeffH equalsJeffH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@nadalin
Copy link
Contributor

nadalin commented Oct 17, 2017

@jcjones Please merge by end of Tuesday unless @jyasskin has issues with this

@jcjones jcjones merged commit b8c6027 into w3c:master Oct 18, 2017
@jcjones jcjones deleted the 624-clientExtensionResults branch October 18, 2017 17:23
@@ -2761,7 +2753,7 @@ Supported [=client extensions=] are recorded as a dictionary in the [=client dat
{{CollectedClientData/clientExtensions}}. For each such extension, the client adds an entry to this dictionary with the
[=extension identifier=] as the key, and the extension's [=client extension input=] as the value.

Likewise, the [=client extension outputs=] are represented as a dictionary in the {{PublicKeyCredential/clientExtensionResults}}
Likewise, the [=client extension outputs=] are represented as a dictionary in the result of {{PublicKeyCredential/getClientExtensionResults()}}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are represented as a record, not a dictionary...

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.

clientExtensionResults attribute cannot be a Record type
5 participants