upgrade.https.sub.html (794B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>HTTPS Upgrades: Upgrade.</title> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <script src="/common/get-host-info.sub.js"></script> 8 9 </head> 10 <body> 11 <script> 12 setup({ single_test: true }); 13 // HTTPS upgrades don't change custom ports, so this will load correctly if an HTTPS upgrade is performed, 14 // and will fail to load otherwise (since the port will be wrong for http). 15 var url = new URL("http://{{host}}:{{ports[https][0]}}/https-upgrades/resources/pass.html") 16 window.onmessage = function(event) { 17 if (event.data === "pass") { 18 done(); 19 } 20 } 21 win = window.open(url) 22 </script> 23 </body> 24 </html>