blob: dfef7a1d133c267b8a27e5acb6c4ac89cfbc8ee7 [file] [log] [blame]
<title>Test that Origin Policy report-to are deliverd to the declared reporting group</title>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<iframe id="frame" src="about:blank"></iframe>
// Navigate the frame to a URL that declares an (invalid) origin policy with
// a report-to directive.
document.getElementById("frame").src =
<script async defer src='/content-security-policy/support/checkReport.sub.js?reportField=policy&reportValue=nonexistingpolicy'>
// This re-uses CSP reporting test infrastructure, and contains the actual
// test. In addition to sanity checks, it will check whether the report body
// contains a key/value pair as indicated by reportField and reportValue.