| Index: third_party/WebKit/LayoutTests/external/wpt/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/upgrade-protocol.keep-origin-redirect.http.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/upgrade-protocol.keep-origin-redirect.http.html b/third_party/WebKit/LayoutTests/external/wpt/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/upgrade-protocol.keep-origin-redirect.http.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..19666416a90c55663c58881674f33d0488711cdd
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/referrer-policy/unset-referrer-policy/http-rp/cross-origin/http-https/script-tag/upgrade-protocol.keep-origin-redirect.http.html
|
| @@ -0,0 +1,40 @@
|
| +<!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 not explicitly defined</title>
|
| + <meta name="description" content="Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set.">
|
| + <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
| + <link rel="help" href="https://w3c.github.io/webappsec-referrer-policy/#referrer-policies">
|
| + <meta name="assert" content="The referrer URL is stripped-referrer when a
|
| + document served over http requires an https
|
| + sub-resource via script-tag using the http-rp
|
| + delivery method with keep-origin-redirect and when
|
| + the target request is cross-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": null,
|
| + "delivery_method": "http-rp",
|
| + "redirection": "keep-origin-redirect",
|
| + "origin": "cross-origin",
|
| + "source_protocol": "http",
|
| + "target_protocol": "https",
|
| + "subresource": "script-tag",
|
| + "subresource_path": "/referrer-policy/generic/subresource/script.py",
|
| + "referrer_url": "stripped-referrer"
|
| + },
|
| + document.querySelector("meta[name=assert]").content,
|
| + new SanityChecker()
|
| + ).start();
|
| + </script>
|
| + <div id="log"></div>
|
| + </body>
|
| +</html>
|
|
|