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

Unified Diff: Source/modules/crypto/WorkerContextCrypto.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/WorkerContextCrypto.idl
diff --git a/Source/modules/crypto/DOMWindowCrypto.idl b/Source/modules/crypto/WorkerContextCrypto.idl
similarity index 92%
copy from Source/modules/crypto/DOMWindowCrypto.idl
copy to Source/modules/crypto/WorkerContextCrypto.idl
index 021eeaf8f12f0dc796d8b619744171523a3a031e..75ecdce48fc669c01ab42ae6e85f96b253b0baec 100644
--- a/Source/modules/crypto/DOMWindowCrypto.idl
+++ b/Source/modules/crypto/WorkerContextCrypto.idl
@@ -23,7 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-partial interface DOMWindow {
- readonly attribute Crypto crypto;
+partial interface WorkerContext {
+ [EnabledAtRuntime=Crypto] readonly attribute RandomSource crypto;
};

Powered by Google App Engine
This is Rietveld 408576698