Index: modules/crypto/Crypto.idl |
diff --git a/core/page/Crypto.idl b/modules/crypto/Crypto.idl |
similarity index 85% |
copy from core/page/Crypto.idl |
copy to modules/crypto/Crypto.idl |
index 0cabce2f3da34e3719b2237d7092467b2086a17a..0682853789128c922fc7d970861cc3702b197b39 100644 |
--- a/core/page/Crypto.idl |
+++ b/modules/crypto/Crypto.idl |
@@ -29,6 +29,13 @@ |
[ |
NoInterfaceObject |
] interface Crypto { |
+ // Note that getRandomValues() is available even when the "Crypto" |
+ // runtime feature is disabled. |
+ // |
+ // This is for compatibility sake, since getRandomValues() predates the full |
+ // Web Crypto API spec. |
[Custom, RaisesException] ArrayBufferView getRandomValues(ArrayBufferView array); |
+ |
+ [EnabledAtRuntime=Crypto] readonly attribute SubtleCrypto subtle; |
}; |