OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="/resources/testharness.js"></script> | 4 <script src="/resources/testharness.js"></script> |
5 <script src="/resources/testharnessreport.js"></script> | 5 <script src="/resources/testharnessreport.js"></script> |
6 | 6 |
7 <script> | 7 <script> |
8 if (window.testRunner) { | 8 if (window.testRunner) { |
9 // This test checks that active mixed subresources in iframes | 9 // This test checks that active mixed subresources in iframes |
10 // are allowed if the iframe itself was allowed as mixed content. | 10 // are allowed if the iframe itself was allowed as mixed content. |
11 testRunner.setAllowRunningOfInsecureContent(true); | 11 testRunner.setAllowRunningOfInsecureContent(true); |
12 testRunner.dumpAsText(); | 12 testRunner.dumpAsText(); |
13 } | 13 } |
14 | 14 |
15 var t = async_test("Testing an insecure script in a mixed iframe"); | 15 var t = async_test("Testing an insecure script in a mixed iframe"); |
16 window.addEventListener("message", t.step_func(function () { | 16 window.addEventListener("message", t.step_func(function () { |
17 t.done(); | 17 t.done(); |
18 })); | 18 })); |
19 </script> | 19 </script> |
20 </head> | 20 </head> |
21 <body> | 21 <body> |
22 <p>This test passes if the active subresource in the frame below is allowed.
</p> | 22 <p>This test passes if the active subresource in the frame below is allowed.
</p> |
23 <iframe src="http://127.0.0.1:8000/security/mixedContent/resources/frame-loa
ds-insecure-script.html"></iframe> | 23 <iframe src="http://example.test:8000/security/mixedContent/resources/frame-
loads-insecure-script.html"></iframe> |
24 </body> | 24 </body> |
25 </html> | 25 </html> |
OLD | NEW |