testing/web-platform/tests/trusted-types/trusted-types-reporting-check-report.https.html
author Daniel Vogelheim <vogelheim@chromium.org>
Wed, 06 Mar 2019 12:32:58 +0000
changeset 522252 421b2d61556853b4914612860935627cda2ab40e
permissions -rw-r--r--
Bug 1526693 [wpt PR 15275] - [trusted types] Support reporting and report-only mode., a=testonly Automatic update from web-platform-tests [trusted types] Support reporting and report-only mode. Bug: 739170 Change-Id: I7c1e4db4f22166692d9fdd90c60d2ef61635033b Reviewed-on: https://chromium-review.googlesource.com/c/1456012 Commit-Queue: Daniel Vogelheim <vogelheim@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Reviewed-by: Andy Paicu <andypaicu@chromium.org> Cr-Commit-Position: refs/heads/master@{#634145} -- wpt-commits: 95c2354431560bda34b98ed0e1efee2aaa24e1a4 wpt-pr: 15275

<!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 ../content-security-policy/support/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>