| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="/resources/testharness.js"></script> |
| 3 <script src="/resources/testharnessreport.js"></script> |
| 4 <body> |
| 5 <script> |
| 6 window.testRunner.dumpFrameLoadCallbacks(); |
| 7 |
| 8 async_test(t => { |
| 9 fetch("https://hsts-example.test:8443/security/resources/hsts.php?as-fetch") |
| 10 .then(t.step_func(_ => { |
| 11 var i = document.createElement('iframe'); |
| 12 |
| 13 // Note: HTTP, not HTTPS: |
| 14 i.src = "http://hsts-example.test:8443/security/resources/hsts.php"; |
| 15 window.onmessage = t.unreached_func("No message should be received from
the frame."); |
| 16 |
| 17 // Give the message a chance to get through. |
| 18 document.body.appendChild(i); |
| 19 requestAnimationFrame(_ => t.done()); |
| 20 })); |
| 21 }, "HSTS does not bypass MIX."); |
| 22 </script> |
| OLD | NEW |