mirror of
https://github.com/servo/servo.git
synced 2025-09-19 11:20:09 +01:00
Add trusted type checks for eval arguments (#39263)
Also bumps mozjs to the latest version that has support for `GStackVector` which is what this callback uses. Part of #36258 Fixes #38877 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
033da09800
commit
d1c3e5f58f
9 changed files with 97 additions and 185 deletions
|
@ -1,12 +0,0 @@
|
|||
[report-clips-sample.https.html]
|
||||
[Function constructor - the other kind of eval - is clipped.]
|
||||
expected: FAIL
|
||||
|
||||
[Async Function constructor is also clipped.]
|
||||
expected: FAIL
|
||||
|
||||
[Generator Function constructor is also clipped.]
|
||||
expected: FAIL
|
||||
|
||||
[AsyncGenerator Function constructor is also clipped.]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[eval-csp-tt-no-default-policy.html]
|
||||
[Function constructor of string and TrustedScript fails.]
|
||||
expected: FAIL
|
|
@ -1,18 +0,0 @@
|
|||
[eval-function-constructor-untrusted-arguments-and-applying-default-policy.html]
|
||||
[plain string at index 0 (default policy modifying the function text).]
|
||||
expected: FAIL
|
||||
|
||||
[plain string at index 1 (default policy modifying the function text).]
|
||||
expected: FAIL
|
||||
|
||||
[plain string at index 2 (default policy modifying the function text).]
|
||||
expected: FAIL
|
||||
|
||||
[TrustedScript with forged toString() at index 0 (default policy modifying the function text).]
|
||||
expected: FAIL
|
||||
|
||||
[TrustedScript with forged toString() at index 1 (default policy modifying the function text).]
|
||||
expected: FAIL
|
||||
|
||||
[TrustedScript with forged toString() at index 2 (default policy modifying the function text).]
|
||||
expected: FAIL
|
|
@ -1,93 +0,0 @@
|
|||
[eval-function-constructor.html]
|
||||
[Function constructor with mixed plain and trusted strings, mask #8]
|
||||
expected: FAIL
|
||||
|
||||
[AsyncFunction constructor with mixed plain and trusted strings, mask #8]
|
||||
expected: FAIL
|
||||
|
||||
[GeneratorFunction constructor with mixed plain and trusted strings, mask #8]
|
||||
expected: FAIL
|
||||
|
||||
[AsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #8]
|
||||
expected: FAIL
|
||||
|
||||
[Function constructor with mixed plain and trusted strings, mask #9]
|
||||
expected: FAIL
|
||||
|
||||
[AsyncFunction constructor with mixed plain and trusted strings, mask #9]
|
||||
expected: FAIL
|
||||
|
||||
[GeneratorFunction constructor with mixed plain and trusted strings, mask #9]
|
||||
expected: FAIL
|
||||
|
||||
[AsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #9]
|
||||
expected: FAIL
|
||||
|
||||
[Function constructor with mixed plain and trusted strings, mask #10]
|
||||
expected: FAIL
|
||||
|
||||
[AsyncFunction constructor with mixed plain and trusted strings, mask #10]
|
||||
expected: FAIL
|
||||
|
||||
[GeneratorFunction constructor with mixed plain and trusted strings, mask #10]
|
||||
expected: FAIL
|
||||
|
||||
[AsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #10]
|
||||
expected: FAIL
|
||||
|
||||
[Function constructor with mixed plain and trusted strings, mask #11]
|
||||
expected: FAIL
|
||||
|
||||
[AsyncFunction constructor with mixed plain and trusted strings, mask #11]
|
||||
expected: FAIL
|
||||
|
||||
[GeneratorFunction constructor with mixed plain and trusted strings, mask #11]
|
||||
expected: FAIL
|
||||
|
||||
[AsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #11]
|
||||
expected: FAIL
|
||||
|
||||
[Function constructor with mixed plain and trusted strings, mask #12]
|
||||
expected: FAIL
|
||||
|
||||
[AsyncFunction constructor with mixed plain and trusted strings, mask #12]
|
||||
expected: FAIL
|
||||
|
||||
[GeneratorFunction constructor with mixed plain and trusted strings, mask #12]
|
||||
expected: FAIL
|
||||
|
||||
[AsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #12]
|
||||
expected: FAIL
|
||||
|
||||
[Function constructor with mixed plain and trusted strings, mask #13]
|
||||
expected: FAIL
|
||||
|
||||
[AsyncFunction constructor with mixed plain and trusted strings, mask #13]
|
||||
expected: FAIL
|
||||
|
||||
[GeneratorFunction constructor with mixed plain and trusted strings, mask #13]
|
||||
expected: FAIL
|
||||
|
||||
[AsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #13]
|
||||
expected: FAIL
|
||||
|
||||
[Function constructor with mixed plain and trusted strings, mask #14]
|
||||
expected: FAIL
|
||||
|
||||
[AsyncFunction constructor with mixed plain and trusted strings, mask #14]
|
||||
expected: FAIL
|
||||
|
||||
[GeneratorFunction constructor with mixed plain and trusted strings, mask #14]
|
||||
expected: FAIL
|
||||
|
||||
[AsyncGeneratorFunction constructor with mixed plain and trusted strings, mask #14]
|
||||
expected: FAIL
|
||||
|
||||
[Function constructor with trusted strings, and a forged toString() for the one at index 0]
|
||||
expected: FAIL
|
||||
|
||||
[Function constructor with trusted strings, and a forged toString() for the one at index 1]
|
||||
expected: FAIL
|
||||
|
||||
[Function constructor with trusted strings, and a forged toString() for the one at index 2]
|
||||
expected: FAIL
|
|
@ -1,12 +0,0 @@
|
|||
[trusted-types-reporting-for-DedicatedWorker-function-constructor.html]
|
||||
[Violation report for Function with plain string.]
|
||||
expected: FAIL
|
||||
|
||||
[Violation report for AsyncFunction with plain string.]
|
||||
expected: FAIL
|
||||
|
||||
[Violation report for GeneratorFunction with plain string.]
|
||||
expected: FAIL
|
||||
|
||||
[Violation report for AsyncGeneratorFunction with plain string.]
|
||||
expected: FAIL
|
|
@ -1,12 +0,0 @@
|
|||
[trusted-types-reporting-for-Window-function-constructor.html]
|
||||
[Violation report for Function with plain string.]
|
||||
expected: FAIL
|
||||
|
||||
[Violation report for AsyncFunction with plain string.]
|
||||
expected: FAIL
|
||||
|
||||
[Violation report for GeneratorFunction with plain string.]
|
||||
expected: FAIL
|
||||
|
||||
[Violation report for AsyncGeneratorFunction with plain string.]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue