diff options
Diffstat (limited to 'testing/web-platform/tests/trusted-types/trusted-types-reporting-check-report.html')
-rw-r--r-- | testing/web-platform/tests/trusted-types/trusted-types-reporting-check-report.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/tests/trusted-types/trusted-types-reporting-check-report.html b/testing/web-platform/tests/trusted-types/trusted-types-reporting-check-report.html new file mode 100644 index 0000000000..ae5ac25052 --- /dev/null +++ b/testing/web-platform/tests/trusted-types/trusted-types-reporting-check-report.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<html> +<head> + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> + <title>Check Trusted Type violation reports</title> + +<!-- We assume these HTTP headers are set on the request: + + Set-Cookie: trusted-types-reporting-check-report={{$id:uuid()}}; Path=/trusted-types/ + Content-Security-Policy-Report-Only: \ + trusted-types one two; \ + report-uri /reporting/resources/report.py?op=put&reportID={{$id}} +--> +</head> +<body> + <script> + trustedTypes.createPolicy("three", {}); + </script> + <script async defer src='../content-security-policy/support/checkReport.sub.js?reportField=violated-directive&reportValue=trusted-types'></script> +</body> +</html> |