| Index: LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-referrer-when-downgrade.html
|
| diff --git a/LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-referrer-when-downgrade.html b/LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-referrer-when-downgrade.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..47bcf273179c648898f849e7fa8bad000344ea77
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/security/referrer-policy-attribute-anchor-no-referrer-when-downgrade.html
|
| @@ -0,0 +1,19 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| + <script src="/resources/testharness.js"></script>
|
| + <script src="/resources/testharnessreport.js"></script>
|
| + <script src="/resources/get-host-info.js"></script>
|
| +</head>
|
| +<body>
|
| + <a href="http://127.0.0.1:8000/security/resources/referrer-attr-anchor-target.html#no-referrer-when-downgrade"
|
| + referrerpolicy="no-referrer-when-downgrade" id="click-me">click me</a>
|
| + <script>
|
| + if (window.location.origin != get_host_info().HTTPS_ORIGIN) {
|
| + window.location = get_host_info().HTTPS_ORIGIN + window.location.pathname;
|
| + } else {
|
| + document.getElementById("click-me").click();
|
| + }
|
| + </script>
|
| +</body>
|
| +</html>
|
|
|