crypto.getRandomValues should throw an exception when given a big array
https://bugs.webkit.org/show_bug.cgi?id=95269
Reviewed by Eric Seidel.
Source/WebCore:
The W3C Web Cryptography Working Group has taken up specifying
window.crypto. The latest draft calls for getRandomValues to throw an
exception when given an array that's large.
Test: security/crypto-random-values-limits.html
* page/Crypto.cpp:
(WebCore::Crypto::getRandomValues):
LayoutTests:
* security/crypto-random-values-limits-expected.txt: Added.
* security/crypto-random-values-limits.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@126953
268f45cc-cd09-0410-ab3c-
d52691b4dbfc