9.33content-security-policy/unsafe-eval/
30 / 30 WPT subtests passing
- Failed
- 0
- Timed out
- 0
- Not run
- 0
- Test files
- 15
- Blocking files
- 0
Chrome 30 / 30 WPT subtests passing on the same files, none blocking
Tests
15 test files hereEach test file opens in place to its subtests, and each subtest that did not pass to its message.
Test fileSubtests passingChromeFailedStanding
eval-allowed.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting alerts: ["PASS (1 of 2)","PASS (2 of 2)"]
eval-blocked-and-sends-report.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS: eval() blocked.","violated-directive=script-src"]
eval-blocked-in-about-blank-iframe.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- eval-blocked-in-about-blank-iframe
eval-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS EvalError","PASS EvalError", "violated-directive=script-src"]
eval-in-iframe.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- (script-src) Eval code should not execute from iframe in iframe
- (script-src) Eval code should execute from iframe in parent
- (script-src) Eval code should not execute from parent in iframe
- (default-src) Eval code should not execute from iframe in iframe
- (default-src) Eval code should execute from iframe in parent
- (default-src) Eval code should not execute from parent in iframe
eval-scripts-setInterval-allowed.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS 1 of 2","PASS 2 of 2"]
eval-scripts-setInterval-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS","violated-directive=script-src"]
eval-scripts-setTimeout-allowed.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS 1 of 2","PASS 2 of 2"]
eval-scripts-setTimeout-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS","violated-directive=script-src"]
eval-scripts-setTimeout-setInterval-blocked-no-exception.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- setTimeout() with a blocked string handler returns 0 and doesn't report an exception
- setInterval() with a blocked string handler returns 0 and doesn't report an exception
eval-scripts-setTimeout-setInterval-cross-realm.html 6 / 6 passingChrome 6 / 60 failedClean
6 passing subtests
- setTimeout() on a global whose policy blocks eval returns 0
- setTimeout() from another realm on a global whose policy blocks eval returns 0
- setTimeout() from a realm whose policy blocks eval on a global whose policy doesn't returns an ID and runs
- setInterval() on a global whose policy blocks eval returns 0
- setInterval() from another realm on a global whose policy blocks eval returns 0
- setInterval() from a realm whose policy blocks eval on a global whose policy doesn't returns an ID and runs
eval-scripts-setTimeout-setInterval-policy-added-later.html 2 / 2 passingChrome 2 / 20 failedClean
2 passing subtests
- setTimeout() string handler runs after a policy blocking eval is added
- setInterval() string handler keeps running after a policy blocking eval is added
eval-scripts-setTimeout-setInterval-report-only.html 4 / 4 passingChrome 4 / 40 failedClean
4 passing subtests
- setTimeout() reports a violation for a string handler even if the timer is cleared right away
- setTimeout() reports a violation for a string handler and runs it
- setInterval() reports a violation for a string handler even if the timer is cleared right away
- setInterval() reports a violation for a string handler and runs it
function-constructor-allowed.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS"]
function-constructor-blocked.sub.html 1 / 1 passingChrome 1 / 10 failedClean
1 passing subtest
- Expecting logs: ["PASS EvalError","violated-directive=script-src"]