diff options
author | Basilisk-Dev <basiliskdev@protonmail.com> | 2023-10-25 13:39:53 -0400 |
---|---|---|
committer | Basilisk-Dev <basiliskdev@protonmail.com> | 2023-10-25 13:39:53 -0400 |
commit | 3d92b8212595769c40da7ccfbafb3898cfaaf7bd (patch) | |
tree | 3fb4a40f65368555ec2cb0594e7e0b6fd32629c7 /dom/webidl | |
parent | 6df4c1874704597159f84e7a8cedca6157f25ef8 (diff) | |
download | uxp-3d92b8212595769c40da7ccfbafb3898cfaaf7bd.tar.gz |
No Issue - Implement crypto.randomUUID
We already have code in the platform to generate random UUIDs. This simply exposes that functionality via the crypto.UUID function
Diffstat (limited to 'dom/webidl')
-rw-r--r-- | dom/webidl/Crypto.webidl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/webidl/Crypto.webidl b/dom/webidl/Crypto.webidl index 31574a219c..2ef7b5d21d 100644 --- a/dom/webidl/Crypto.webidl +++ b/dom/webidl/Crypto.webidl @@ -18,4 +18,7 @@ interface Crypto { [Throws] ArrayBufferView getRandomValues(ArrayBufferView array); + + [SecureContext] + DOMString randomUUID(); }; |