This tests the combined use of script hash and script nonce. It passes if a CSP violation is generated and the three alerts show PASS.

Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
PassExpecting alerts: ["PASS (1/3)","PASS (2/3)","PASS (3/3)"]
Asserts run
Pass
assert_equals("PASS (1/3)", "PASS (1/3)")
    at Test.<anonymous> ( /content-security-policy/script-src/scriptnonce-and-scripthash.sub.html:33:25)
Pass
assert_equals("PASS (2/3)", "PASS (2/3)")
    at Test.<anonymous> ( /content-security-policy/script-src/scriptnonce-and-scripthash.sub.html:33:25)
Pass
assert_equals("PASS (3/3)", "PASS (3/3)")
    at Test.<anonymous> ( /content-security-policy/script-src/scriptnonce-and-scripthash.sub.html:33:25)
Pass
assert_equals("violated-directive=script-src-elem", "violated-directive=script-src-elem")
    at Test.<anonymous> ( /content-security-policy/script-src/scriptnonce-and-scripthash.sub.html:33:25)
Pass
assert_equals("violated-directive=script-src-elem", "violated-directive=script-src-elem")
    at Test.<anonymous> ( /content-security-policy/script-src/scriptnonce-and-scripthash.sub.html:33:25)