OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta http-equiv="Content-Security-Policy" content="block-all-mixed-content"
> | 4 <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-content
"> |
5 <script> | 5 <script> |
6 if (window.testRunner) { | 6 if (window.testRunner) { |
7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
| 9 testRunner.dumpChildFramesAsText(); |
| 10 testRunner.dumpResourceLoadCallbacks(); |
| 11 testRunner.dumpResourceRequestCallbacks(); |
| 12 testRunner.overridePreference("WebKitAllowDisplayingInsecureContent"
, false); |
9 } | 13 } |
10 window.addEventListener("message", function (e) { | 14 window.addEventListener("message", function (e) { |
11 if (window.testRunner) | 15 if (window.testRunner) |
12 testRunner.notifyDone(); | 16 testRunner.notifyDone(); |
13 }, false); | 17 }, false); |
14 </script> | 18 </script> |
15 </head> | 19 </head> |
16 <body> | 20 <body> |
17 <p>This test passes if the image in the frame below is treated as blockable
content.</p> | 21 <p>This test passes if the image in the frame below is loaded securely.</p> |
18 <iframe src="resources/frame-with-insecure-image.html"></iframe> | 22 <iframe src="resources/frame-with-insecure-image.html"></iframe> |
19 </body> | 23 </body> |
20 </html> | 24 </html> |
OLD | NEW |