| OLD | NEW |
| (Empty) | |
| 1 <?php |
| 2 header("Content-Security-Policy: upgrade-insecure-requests"); |
| 3 ?> |
| 4 <!DOCTYPE html> |
| 5 <html> |
| 6 <title>Upgrade Insecure Requests: link upgrade.</title> |
| 7 <head> |
| 8 <script> |
| 9 if (window.testRunner) { |
| 10 testRunner.dumpAsText(); |
| 11 testRunner.waitUntilDone(); |
| 12 } |
| 13 |
| 14 function click() { |
| 15 document.getElementById("link").click(); |
| 16 } |
| 17 </script> |
| 18 </head> |
| 19 <body onload="click()"> |
| 20 <!-- This is a bit of a hack. UPGRADE doesn't upgrade the port number, so we |
| 21 specify this non-existent URL ('http' over port 8443). If UPGRADE doesn't |
| 22 work, it won't load. |
| 23 The expected behavior is that the url is upgraded and the page loaded. --> |
| 24 <a id="link" href="http://127.0.0.1:8443/resources/notify-done.html">Click m
e</a> |
| 25 </body> |
| 26 </html> |
| OLD | NEW |