-
Notifications
You must be signed in to change notification settings - Fork 26
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
Conversation
@martinthomson does this look good to you? |
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.
Looks reasonable. Assuming that SFrame is good (which might be in doubt).
@dontcallmedom any idea how to handle BigInt missing reference? |
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. |
Co-authored-by: Martin Thomson <mt@lowentropy.net>
f435700
to
ea708f9
Compare
This PR was discussed during Thursday editor's call and deemed ready to merge once the WebIDL BigInt issue is fixed. |
Checks are fine, so merging. |
…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>
Added to Web IDL in whatwg/webidl#525 but now used (with wrong case) in w3c/webrtc-encoded-transform#77.
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; |
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've sent #92 to fix the case of BigInt
here, spotted by tests in https://github.com/w3c/webref.
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
Fixes #69
Preview | Diff