<!DOCTYPE html>
<!-- DO NOT EDIT! Generated by referrer-policy/generic/tools/generate.py using referrer-policy/generic/template/test.release.html.template. -->
<html>
  <head>
    <title>Referrer-Policy: Referrer Policy is set to 'no-referrer'</title>
    <meta name="description" content="Check that sub-resource never gets the referrer URL.">
    <!-- No meta: Referrer policy delivered via HTTP headers. -->
    <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
    <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer">
    <meta name="assert" content="The referrer URL is omitted when a
                                 document served over http requires an https
                                 sub-resource via fetch-request using the http-rp
                                 delivery method with keep-origin-redirect and when
                                 the target request is same-origin.">
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <script src="/common/security-features/resources/common.js"></script>
    <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script>
  </head>
  <body>
    <script>
      ReferrerPolicyTestCase(
        {
          "referrer_policy": "no-referrer",
          "delivery_method": "http-rp",
          "redirection": "keep-origin-redirect",
          "origin": "same-origin",
          "source_protocol": "http",
          "target_protocol": "https",
          "subresource": "fetch-request",
          "referrer_url": "omitted"
        },
        document.querySelector("meta[name=assert]").content,
        new SanityChecker()
      ).start();
      </script>
    <div id="log"></div>
  </body>
</html>
