data: as script src should not run with a policy that doesn't specify data: as an allowed source

Summary

Harness status: OK

Found 2 tests

Details

ResultTest NameMessage
PassTest that securitypolicyviolation event is fired
Asserts run
Pass
assert_equals("script-src-elem", "script-src-elem")
    at Test.<anonymous> ( /content-security-policy/script-src/script-src-1_10.html:18:13)
PassVerify that data: as script src doesn't run with this policy
Asserts run
Pass
assert_false(false, "data script ran")
    at Test.<anonymous> ( /content-security-policy/script-src/script-src-1_10.html:27:13)