OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="/resources/testharness.js"></script> |
| 5 <script src="/resources/testharnessreport.js"></script> |
| 6 <script src="/resources/get-host-info.js"></script> |
| 7 </head> |
| 8 <body> |
| 9 <script> |
| 10 if (window.location.origin != get_host_info().HTTPS_ORIGIN) { |
| 11 window.location = get_host_info().HTTPS_ORIGIN + window.location.pathname; |
| 12 } else { |
| 13 testRunner.overridePreference("WebKitAllowRunningInsecureContent", true); |
| 14 async_test(function () { |
| 15 window.onmessage = this.step_func(function (event) { |
| 16 if (event.data.policy === "no-referrer-when-downgrade") { |
| 17 assert_equals(event.data.referrer, ""); |
| 18 this.done(); |
| 19 } |
| 20 }); |
| 21 }, "no-referrer-when-downgrade attribute on iframe"); |
| 22 } |
| 23 </script> |
| 24 |
| 25 <iframe src="http://127.0.0.1:8000/security/resources/referrer-attr-iframe-tar
get.html#no-referrer-when-downgrade" referrerpolicy="no-referrer-when-downgrade"
/> |
| 26 </body> |
| 27 </html> |
OLD | NEW |