https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d6ebd711521b88acf00f3f1bbd5c4560500e92ea authored by Brandon Jones on 20 November 2018, 17:24:18 UTC
Remove the multiview attribute from XRWebGLLayer
Tip revision: d6ebd71
reporting-api-works-on-frame-src.https.sub.html
<!DOCTYPE HTML>
<html>
<head>
  <title>Test that reports using the report-api service are sent when there's a violation</title>
  <script src='/resources/testharness.js'></script>
  <script src='/resources/testharnessreport.js'></script>
</head>
<body>
  <script>
    async_test(function(t2) {
      window.addEventListener("securitypolicyviolation", t2.step_func(function(e) {
        assert_equals(e.blockedURI, "{{location[scheme]}}://{{location[host]}}/content-security-policy/support/fail.html");
        assert_equals(e.violatedDirective, "frame-src");
        t2.done();
      }));
    }, "Event is fired");
  </script>
  <iframe src="../support/fail.html"></iframe>

  <script async defer src='../support/checkReport.sub.js?reportField=violated-directive&reportValue=frame-src%20%27none%27'></script>
</body>
</html>
back to top