| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../inspector-protocol/inspector-protocol-test.js"></script> | 2 <script src="../inspector-protocol/resources/inspector-protocol-test.js"></scrip
t> |
| 3 <script src="/resources/get-host-info.js"></script> | 3 <script src="/resources/get-host-info.js"></script> |
| 4 <script> | 4 <script> |
| 5 function sendRequest(policy) { | 5 function sendRequest(policy) { |
| 6 var img = document.createElement("img"); | 6 var img = document.createElement("img"); |
| 7 img.referrerPolicy = policy; | 7 img.referrerPolicy = policy; |
| 8 img.src = "/resources/square.png?" + Math.random(); | 8 img.src = "/resources/square.png?" + Math.random(); |
| 9 document.body.appendChild(img); | 9 document.body.appendChild(img); |
| 10 } | 10 } |
| 11 | 11 |
| 12 function test() { | 12 function test() { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 {"expression" : "sendRequest('" + policies[policy_num] + "')"}); | 51 {"expression" : "sendRequest('" + policies[policy_num] + "')"}); |
| 52 } | 52 } |
| 53 } | 53 } |
| 54 </script> | 54 </script> |
| 55 <body onload="runTest()"> | 55 <body onload="runTest()"> |
| 56 <p> | 56 <p> |
| 57 Tests that network requests are annotated with the correct referrer | 57 Tests that network requests are annotated with the correct referrer |
| 58 policy. | 58 policy. |
| 59 </p> | 59 </p> |
| 60 </body> | 60 </body> |
| OLD | NEW |