reporting-api-doesnt-send-reports-without-violation.https.sub.html (719B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>Test that reports using the report-api service are not sent when there's not validation</title> 5 <script src='/resources/testharness.js'></script> 6 <script src='/resources/testharnessreport.js'></script> 7 </head> 8 <body> 9 <script> 10 var t1 = async_test("Test that image loads"); 11 window.addEventListener("securitypolicyviolation", 12 t1.unreached_func("Should not have triggered a violation event")); 13 </script> 14 <img src='/content-security-policy/support/pass.png' 15 onload='t1.done();' 16 onerror='t1.unreached_func("The image should have loaded");'> 17 18 <script async defer src='../support/checkReport.sub.js?reportExists=false'></script> 19 </body> 20 </html>