Skip to content

Add support for long keyID values #77

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

Merged
merged 6 commits into from
Mar 19, 2021
Merged

Conversation

youennf
Copy link
Collaborator

@youennf youennf commented Mar 11, 2021

Fixes #69


Preview | Diff

@jan-ivar
Copy link
Member

@martinthomson does this look good to you?

@jan-ivar jan-ivar requested a review from martinthomson March 11, 2021 21:43
Copy link
Member

@martinthomson martinthomson left a comment

Choose a reason for hiding this comment

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

Looks reasonable. Assuming that SFrame is good (which might be in doubt).

@youennf
Copy link
Collaborator Author

youennf commented Mar 18, 2021

@dontcallmedom any idea how to handle BigInt missing reference?

@dontcallmedom
Copy link
Member

The right fix is to get bikeshed to recognize it, which itself require a fix in tis WebIDL parser - I've filed a pull request towards that: plinss/widlparser#64

I think temporarily you can defined BigInt as a local anchor with type interface to workaround the problem while this gets fixed.

@youennf
Copy link
Collaborator Author

youennf commented Mar 19, 2021

This PR was discussed during Thursday editor's call and deemed ready to merge once the WebIDL BigInt issue is fixed.

@youennf
Copy link
Collaborator Author

youennf commented Mar 19, 2021

Checks are fine, so merging.

@youennf youennf merged commit 566cd58 into w3c:main Mar 19, 2021
github-actions bot added a commit that referenced this pull request Mar 19, 2021
…for long keyID values* Update index.bsCo-authored-by: Martin Thomson <mt@lowentropy.net>* Update index.bs* Update index.bs* Add BigInt workaround* BigInt link fixCo-authored-by: Martin Thomson <mt@lowentropy.net>

SHA: 566cd58
Reason: push, by @youennf

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
foolip added a commit to w3c/webref that referenced this pull request Mar 23, 2021
Added to Web IDL in whatwg/webidl#525 but now
used (with wrong case) in w3c/webrtc-encoded-transform#77.
foolip added a commit to foolip/webrtc-insertable-streams that referenced this pull request Mar 23, 2021
Introduced in w3c#77

Per https://heycam.github.io/webidl/#idl-bigint the type is spelled "bigint".

This isn't used in any other spec yet, but there are examples of this in tests:
https://github.com/w3c/webidl2.js/blob/9e8b5a0247f2cffccc6265c6577f98a0883d3a60/test/syntax/idl/bigint.webidl
@@ -191,10 +194,13 @@ dictionary SFrameTransformOptions {
SFrameTransformRole role = "encrypt";
};

typedef [EnforceRange] unsigned long long SmallCryptoKeyID;
typedef (SmallCryptoKeyID or BigInt) CryptoKeyID;
Copy link
Member

Choose a reason for hiding this comment

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

I've sent #92 to fix the case of BigInt here, spotted by tests in https://github.com/w3c/webref.

youennf pushed a commit that referenced this pull request Mar 23, 2021
Introduced in #77

Per https://heycam.github.io/webidl/#idl-bigint the type is spelled "bigint".

This isn't used in any other spec yet, but there are examples of this in tests:
https://github.com/w3c/webidl2.js/blob/9e8b5a0247f2cffccc6265c6577f98a0883d3a60/test/syntax/idl/bigint.webidl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SFrameTransfor.setEncryptionKey cannot use all possible keyID values
5 participants