mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:37:46 +00:00
LibWeb: Add the Web::Crypto namespace, built-in, and getRandomValues
Since we don't support IDL typedefs or unions yet, the responsibility of verifying the type of the argument is temporarily moved from the generated Wrapper to the implementation.
This commit is contained in:
parent
becbb0ea97
commit
2c6c9b73c8
12 changed files with 129 additions and 10 deletions
7
Userland/Libraries/LibWeb/Crypto/Crypto.idl
Normal file
7
Userland/Libraries/LibWeb/Crypto/Crypto.idl
Normal file
|
@ -0,0 +1,7 @@
|
|||
[Exposed=(Window,Worker)]
|
||||
interface Crypto {
|
||||
// TODO: [SecureContext] readonly attribute SubtleCrypto subtle;
|
||||
|
||||
// FIXME: the argument and the return value should be of type ArrayBufferView
|
||||
any getRandomValues(any array);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue