OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Locahost is secure</title> |
| 5 <script src="/resources/testharness.js"></script> |
| 6 <script src="/resources/testharness-helpers.js"></script> |
| 7 <script src="/resources/testharnessreport.js"></script> |
| 8 <script src="/resources/get-host-info.js"></script> |
| 9 </head> |
| 10 <body> |
| 11 <script> |
| 12 if (window.location.origin != get_host_info().HTTP_REMOTE_ORIGIN) { |
| 13 window.location = get_host_info().HTTP_REMOTE_ORIGIN + |
| 14 window.location.pathname; |
| 15 } else { |
| 16 test(function () { |
| 17 assert_equals(document.location.hostname, "localhost", "Sanity c
heck the test runner."); |
| 18 assert_true(window.isSecureContext); |
| 19 }, "localhost is secure."); |
| 20 } |
| 21 </script> |
| 22 </body> |
| 23 </html> |
OLD | NEW |