Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
<title>Test that reports using the report-api service are not sent when there's not validation</title>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
var t1 = async_test("Test that image loads");
t1.unreached_func("Should not have triggered a violation event"));
<img src='/content-security-policy/support/pass.png'
onerror='t1.unreached_func("The image should have loaded");'>
<script async defer src='../support/checkReport.sub.js?reportExists=false'></script>