summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/referrer-policy/strict-origin/meta-referrer/same-origin/http-https/img-tag/upgrade-protocol.no-redirect.http.html
blob: f2a6afb83f7e0224b47de91314168604038a6c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!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 'strict-origin'</title>
    <meta name="description" content="Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information.">
    <meta name="referrer" content="strict-origin">
    <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
    <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin">
    <meta name="assert" content="The referrer URL is origin when a
                                 document served over http requires an https
                                 sub-resource via img-tag using the meta-referrer
                                 delivery method with no-redirect and when
                                 the target request is same-origin.">
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <!-- TODO(kristijanburnik): Minify and merge both: -->
    <script src="/referrer-policy/generic/common.js"></script>
    <script src="/referrer-policy/generic/referrer-policy-test-case.js?pipe=sub"></script>
  </head>
  <body>
    <script>
      ReferrerPolicyTestCase(
        {
          "referrer_policy": "strict-origin",
          "delivery_method": "meta-referrer",
          "redirection": "no-redirect",
          "origin": "same-origin",
          "source_protocol": "http",
          "target_protocol": "https",
          "subresource": "img-tag",
          "subresource_path": "/referrer-policy/generic/subresource/image.py",
          "referrer_url": "origin"
        },
        document.querySelector("meta[name=assert]").content,
        new SanityChecker()
      ).start();
      </script>
    <div id="log"></div>
  </body>
</html>