Bug 169333 - [WebIDL] Add support for ImplementedAs for Dictionary members
Summary: [WebIDL] Add support for ImplementedAs for Dictionary members
Status: RESOLVED DUPLICATE of bug 169731
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2017-03-07 18:59 PST by Jiewen Tan
Modified: 2017-03-16 11:28 PDT (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jiewen Tan 2017-03-07 18:59:49 PST
Add support for ImplementedAs for Dictionary members. Currently, I didn't see a way to implement: https://www.w3.org/TR/WebCryptoAPI/#dh-EcdhKeyDeriveParams as public is a reserved word in C++.
Comment 1 Jiewen Tan 2017-03-08 12:37:09 PST
Currently, I have to reconstruct a new JSObject on the fly with a better name publicKey for the public member and then convert the newly constructed JSObject into native one. However, when there is a TypeError, we generate this awkward messages:
crypto.subtle.deriveBits({ name:"ECDH", publicKey:wrongKey }, wrongKey, 128) rejected promise  with TypeError: Member EcdhKeyDeriveParams.publicKey is required and must be an instance of CryptoKey.
Comment 2 Jiewen Tan 2017-03-16 11:28:48 PDT

*** This bug has been marked as a duplicate of bug 169731 ***