Index: modules/crypto/Crypto.idl |
diff --git a/modules/crypto/Crypto.idl b/modules/crypto/Crypto.idl |
index 2348d779845f8430026c4220581099c7fcdb977f..27182ef7dc6899ce8c58d6aa3cb0a049b9118ba9 100644 |
--- a/modules/crypto/Crypto.idl |
+++ b/modules/crypto/Crypto.idl |
@@ -28,15 +28,10 @@ |
[ |
GarbageCollected, |
- NoInterfaceObject |
+ Exposed=(Window,Worker) |
] 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); |
+ [RaisesException, MeasureAs=CryptoGetRandomValues] ArrayBufferView getRandomValues(ArrayBufferView array); |
- [RuntimeEnabled=Crypto] readonly attribute SubtleCrypto subtle; |
+ readonly attribute SubtleCrypto subtle; |
}; |