|
Expose crypto.getRandomValues() to workers.
It is only available to workers when the "Crypto" runtime feature is on.
-----------------------
Testing details
-----------------------
* Duplicated all existing tests for crypto.getRandomValues(). In addition to the original flavor, there is now a version of the test that runs on a worker.
* Removed the 'crypto-' prefix from existing tests. This was redundant, as the path already includes 'crypto/'.
* Added a completely new test: 'worker-random-values-concurrent.html'. This makes sure that calling getRandomValues() concurrently on workers isn't a problem.
BUG= 245025, 142173
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152389
Total comments: 3
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+321 lines, -322 lines) |
Patch |
|
D |
LayoutTests/crypto/crypto-random-values.html
|
View
|
1
|
1 chunk |
+0 lines, -46 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/crypto-random-values-expected.txt
|
View
|
1
|
1 chunk |
+0 lines, -12 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/crypto-random-values-limits.html
|
View
|
1
|
1 chunk |
+0 lines, -33 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/crypto-random-values-limits-expected.txt
|
View
|
1
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/crypto-random-values-types.html
|
View
|
1
|
1 chunk |
+0 lines, -56 lines |
0 comments
|
Download
|
|
D |
LayoutTests/crypto/crypto-random-values-types-expected.txt
|
View
|
1
|
1 chunk |
+0 lines, -52 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/random-values.html
|
View
|
1
2
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/random-values-expected.txt
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/random-values-limits.html
|
View
|
1
2
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/random-values-limits-expected.txt
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/random-values-types.html
|
View
|
1
2
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/random-values-types-expected.txt
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/resources/random-values.js
|
View
|
1
2
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/resources/random-values-concurrent.js
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/resources/random-values-limits.js
|
View
|
1
2
|
2 chunks |
+7 lines, -18 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/resources/random-values-types.js
|
View
|
1
2
|
2 chunks |
+7 lines, -18 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/worker-random-values.html
|
View
|
1
2
3
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/worker-random-values-concurrent.html
|
View
|
1
|
1 chunk |
+61 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/worker-random-values-concurrent-expected.txt
|
View
|
1
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/worker-random-values-expected.txt
|
View
|
1
2
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/worker-random-values-limits.html
|
View
|
1
2
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/worker-random-values-limits-expected.txt
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A + |
LayoutTests/crypto/worker-random-values-types.html
|
View
|
1
2
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/worker-random-values-types-expected.txt
|
View
|
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/bindings.gypi
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
D |
Source/bindings/v8/custom/V8CryptoCustom.cpp
|
View
|
1
2
|
2 chunks |
+4 lines, -2 lines |
1 comment
|
Download
|
|
A + |
Source/bindings/v8/custom/V8WorkerCryptoCustom.cpp
|
View
|
1
2
|
1 chunk |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/modules/crypto/Crypto.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/modules/crypto/Crypto.cpp
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/WorkerContextCrypto.h
|
View
|
1
2
|
1 chunk |
+12 lines, -13 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/WorkerContextCrypto.cpp
|
View
|
1
2
|
1 chunk |
+16 lines, -18 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/WorkerContextCrypto.idl
|
View
|
1
2
3
|
1 chunk |
+2 lines, -5 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/WorkerCrypto.h
|
View
|
1
2
|
1 chunk |
+13 lines, -8 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/WorkerCrypto.cpp
|
View
|
1
2
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/WorkerCrypto.idl
|
View
|
1
2
3
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/modules/modules.gypi
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/wtf/CryptographicallyRandomNumber.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|