This test loads a worker, from a guid. The worker should be blocked from making an XHR to www1 as this resource's policy is connect-src 'self and a guid Worker should inherit is parent's policy. A report should be sent to the report-uri specified with this resource.

Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
PassExpecting logs: ["violated-directive=connect-src","xhr blocked","TEST COMPLETE"]
Asserts run
Pass
assert_equals("violated-directive=connect-src", "violated-directive=connect-src")
    at Test.<anonymous> ( /content-security-policy/support/logTest.sub.js?logs=[%22violated-directive=connect-src%22,%22xhr%20blocked%22,%22TEST%20COMPLETE%22]:29:21)
Pass
assert_equals("xhr blocked", "xhr blocked")
    at Test.<anonymous> ( /content-security-policy/support/logTest.sub.js?logs=[%22violated-directive=connect-src%22,%22xhr%20blocked%22,%22TEST%20COMPLETE%22]:29:21)
Pass
assert_equals("TEST COMPLETE", "TEST COMPLETE")
    at Test.<anonymous> ( /content-security-policy/support/logTest.sub.js?logs=[%22violated-directive=connect-src%22,%22xhr%20blocked%22,%22TEST%20COMPLETE%22]:29:21)