aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/crypto.rs
diff options
context:
space:
mode:
authorSimon Wülker <simon.wuelker@arcor.de>2024-11-19 23:54:59 +0100
committerGitHub <noreply@github.com>2024-11-19 22:54:59 +0000
commitc73e4baca206c172802be145c1fb8d110c1be863 (patch)
treecf8a34cd9a2a855fa0be034141305f71d52ee866 /components/script/dom/crypto.rs
parent79a2f070ed17a227e0dd3a499252716a6adf1361 (diff)
downloadservo-c73e4baca206c172802be145c1fb8d110c1be863.tar.gz
servo-c73e4baca206c172802be145c1fb8d110c1be863.zip
Preference-gate `crypto.subtle` (#34295)
* Update Crypto idl bindings Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Pref-gate Crypto.subtle attribute Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Diffstat (limited to 'components/script/dom/crypto.rs')
-rw-r--r--components/script/dom/crypto.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/crypto.rs b/components/script/dom/crypto.rs
index 4d1ead530c2..4f71d6a29c0 100644
--- a/components/script/dom/crypto.rs
+++ b/components/script/dom/crypto.rs
@@ -14,7 +14,7 @@ use crate::dom::bindings::codegen::Bindings::CryptoBinding::CryptoMethods;
use crate::dom::bindings::error::{Error, Fallible};
use crate::dom::bindings::reflector::{reflect_dom_object, DomObject, Reflector};
use crate::dom::bindings::root::{DomRoot, MutNullableDom};
-use crate::dom::bindings::str::USVString;
+use crate::dom::bindings::str::DOMString;
use crate::dom::globalscope::GlobalScope;
use crate::dom::subtlecrypto::SubtleCrypto;
use crate::script_runtime::JSContext;
@@ -72,7 +72,7 @@ impl CryptoMethods for Crypto {
}
// https://w3c.github.io/webcrypto/#Crypto-method-randomUUID
- fn RandomUUID(&self) -> USVString {
+ fn RandomUUID(&self) -> DOMString {
let uuid = Uuid::new_v4();
uuid.hyphenated()
.encode_lower(&mut Uuid::encode_buffer())