| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>WebCrypto On A Secure Origin Embedded in an Insecure Origin</title> | |
| 5 <script src="/resources/testharness.js"></script> | |
| 6 <script src="/resources/testharnessreport.js"></script> | |
| 7 <script src="/resources/get-host-info.js"></script> | |
| 8 </head> | |
| 9 <body></body> | |
| 10 <script> | |
| 11 if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) { | |
| 12 window.location = get_host_info().UNAUTHENTICATED_ORIGIN + | |
| 13 window.location.pathname; | |
| 14 } else { | |
| 15 if (window.testRunner) | |
| 16 testRunner.overridePreference( | |
| 17 "WebKitStrictPowerfulFeatureRestrictions", true); | |
| 18 | |
| 19 async_test(function () { | |
| 20 window.addEventListener("message", this.step_func(function (event) { | |
| 21 assert_equals(event.data.success, true); | |
| 22 this.done(); | |
| 23 })); | |
| 24 var iframe = document.createElement("iframe"); | |
| 25 iframe.src = get_host_info().HTTP_ORIGIN + | |
| 26 "/security/powerfulFeatureRestrictions/resources/" + | |
| 27 "webcrypto.html"; | |
| 28 document.body.appendChild(iframe); | |
| 29 }, "WebCrypto allowed on secure origin in insecure origin"); | |
| 30 } | |
| 31 </script> | |
| 32 </html> | |
| OLD | NEW |