Index: third_party/WebKit/LayoutTests/external/wpt/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/upgrade-protocol.swap-origin-redirect.http.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/upgrade-protocol.swap-origin-redirect.http.html b/third_party/WebKit/LayoutTests/external/wpt/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/upgrade-protocol.swap-origin-redirect.http.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..73e1f65bbaa959ee707cc355c79a392b0eaf3cfd |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/external/wpt/referrer-policy/strict-origin-when-cross-origin/meta-referrer/same-origin/http-https/img-tag/upgrade-protocol.swap-origin-redirect.http.html |
@@ -0,0 +1,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-when-cross-origin'</title> |
+ <meta name="description" content="Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL."> |
+ <meta name="referrer" content="strict-origin-when-cross-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-when-cross-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 swap-origin-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-when-cross-origin", |
+ "delivery_method": "meta-referrer", |
+ "redirection": "swap-origin-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> |