OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script> | 2 <script> |
3 if (window.testRunner) { | 3 if (window.testRunner) { |
4 testRunner.waitUntilDone(); | 4 testRunner.waitUntilDone(); |
5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
6 testRunner.setCanOpenWindows(); | 6 testRunner.setCanOpenWindows(); |
7 testRunner.setCloseRemainingWindowsWhenComplete(true); | 7 testRunner.setCloseRemainingWindowsWhenComplete(true); |
| 8 testRunner.overridePreference("WebKitAllowRunningInsecureContent", true); |
8 } | 9 } |
9 | 10 |
10 window.addEventListener("message", function (e) { | 11 window.addEventListener("message", function (e) { |
11 if (window.testRunner) | 12 if (window.testRunner) |
12 testRunner.notifyDone(); | 13 testRunner.notifyDone(); |
13 }, false); | 14 }, false); |
14 </script> | 15 </script> |
15 <p>This test opens a window that loads a style sheet which fetches an insecure | 16 <p>This test opens a window that loads a style sheet which fetches an insecure |
16 background image and an insecure web font. We should trigger a mixed content | 17 background image and an insecure web font. We should trigger a mixed content |
17 callback because the main frame in the window is HTTPS but is running insecure | 18 callback because the main frame in the window is HTTPS but is running insecure |
18 content.</p> | 19 content.</p> |
19 <script> | 20 <script> |
20 window.open("https://127.0.0.1:8443/security/mixedContent/resources/frame-with-i
nsecure-css-resources.html"); | 21 window.open("https://127.0.0.1:8443/security/mixedContent/resources/frame-with-i
nsecure-css-resources.html"); |
21 </script> | 22 </script> |
OLD | NEW |