OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <p> | 4 <p> |
5 Prefetching from insecure source must trigger a mixed content callback. | 5 Prefetching from insecure source must trigger a mixed content callback. |
6 </p> | 6 </p> |
7 | 7 |
8 <link rel="prefetch" href="http://127.0.0.1:8080/resources/square.png" onload="
prefetch_onload()" /> | 8 <link rel="prefetch" href="http://example.test:8080/resources/square.png" onloa
d="prefetch_onload()" /> |
9 | 9 |
10 <script> | 10 <script> |
11 if (location.protocol != 'https:') | 11 if (location.protocol != 'https:') |
12 location = 'https://127.0.0.1:8443/security/mixedContent/insecure-prefetch-i
n-main-frame.html'; | 12 location = 'https://127.0.0.1:8443/security/mixedContent/insecure-prefetch-i
n-main-frame.html'; |
13 | 13 |
14 if (window.testRunner) { | 14 if (window.testRunner) { |
15 testRunner.waitUntilDone(); | 15 testRunner.waitUntilDone(); |
16 testRunner.dumpAsText(); | 16 testRunner.dumpAsText(); |
17 } | 17 } |
18 | 18 |
19 function prefetch_onload() { | 19 function prefetch_onload() { |
20 if (window.testRunner) | 20 if (window.testRunner) |
21 testRunner.notifyDone(); | 21 testRunner.notifyDone(); |
22 } | 22 } |
23 </script> | 23 </script> |
24 </body> | 24 </body> |
25 </html> | 25 </html> |
OLD | NEW |