-
Notifications
You must be signed in to change notification settings - Fork 172
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
Conversation
… 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()`.
fa5c155
to
355f1ca
Compare
There was a problem hiding this 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.
@jyasskin @equalsJeffH please review as we need to get this one in ASAP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
@@ -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()}} |
There was a problem hiding this comment.
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...
The attribute
clientExtensionResults
is a typedef ofrecord<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 operationgetClientExtensionResults()
.This resolves #624.
Preview | Diff