Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / referrer-policy-attribute-img-no-referrer-when-downgrade.html
bloba461f7242eb8159b944b37116e4e22013eefe9e4
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="/resources/get-host-info.js"></script>
5 </head>
6 <body>
7 <script>
8 if (window.testRunner)
9 testRunner.waitUntilDone();
11 if (window.location.origin != get_host_info().HTTPS_ORIGIN) {
12 window.location = get_host_info().HTTPS_ORIGIN + window.location.pathname;
13 } else {
14 var img = document.createElement("img");
15 img.src = "http://127.0.0.1:8000/security/resources/green-if-no-referrer.php";
16 img.referrerpolicy = "no-referrer-when-downgrade";
17 document.body.appendChild(img);
18 testRunner.notifyDone();
20 </script>
21 </body>
22 </html