Test passes if both style and image are blocked and a report is generated for the style block from the header-supplied policy.

Summary

Harness status: OK

Found 2 tests

Details

ResultTest NameMessage
PassExpecting logs: ["TEST COMPLETE", "violated-directive=img-src", "violated-directive=style-src-elem"]
Asserts run
Pass
assert_equals("violated-directive=img-src", "violated-directive=img-src")
    at Test.<anonymous> ( /content-security-policy/support/logTest.sub.js?logs=[%22TEST%20COMPLETE%22,%20%22violated-directive=img-src%22,%20%22violated-directive=style-src-elem%22]:29:21)
Pass
assert_equals("TEST COMPLETE", "TEST COMPLETE")
    at Test.<anonymous> ( /content-security-policy/support/logTest.sub.js?logs=[%22TEST%20COMPLETE%22,%20%22violated-directive=img-src%22,%20%22violated-directive=style-src-elem%22]:29:21)
Pass
assert_equals("violated-directive=style-src-elem", "violated-directive=style-src-elem")
    at Test.<anonymous> ( /content-security-policy/support/logTest.sub.js?logs=[%22TEST%20COMPLETE%22,%20%22violated-directive=img-src%22,%20%22violated-directive=style-src-elem%22]:29:21)
Passcombine-header-and-meta-policies
Asserts run
Pass
assert_equals("rgb(0, 0, 0)", "rgb(0, 0, 0)")
    at Test.<anonymous> ( /content-security-policy/meta/combine-header-and-meta-policies.sub.html:47:13)