Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3014)

Unified Diff: Source/modules/crypto/Crypto.idl

Issue 16820007: Expose crypto.getRandomValues() to workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/crypto/Crypto.idl
diff --git a/Source/modules/crypto/Crypto.idl b/Source/modules/crypto/Crypto.idl
index 0682853789128c922fc7d970861cc3702b197b39..6c4b53c31bc4314c6ebeaacc62d0d4b86f8ada82 100644
--- a/Source/modules/crypto/Crypto.idl
+++ b/Source/modules/crypto/Crypto.idl
@@ -10,7 +10,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Googl, Inc. ("Google") nor the names of
+ * 3. Neither the name of Google, Inc. ("Google") nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
@@ -28,14 +28,7 @@
[
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);
-
+] interface Crypto : RandomSource {
abarth-chromium 2013/06/12 23:18:16 Is this how this works in the spec? This change i
[EnabledAtRuntime=Crypto] readonly attribute SubtleCrypto subtle;
};

Powered by Google App Engine
This is Rietveld 408576698