Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / security / mixedContent / insecure-sync-post-xhr-allowed.html
1 <html>
2 <body>
3 <script>
4 if (window.testRunner) {
5     testRunner.waitUntilDone();
6     testRunner.dumpAsText();
7     testRunner.setCanOpenWindows();
8     testRunner.setCloseRemainingWindowsWhenComplete(true);
9     testRunner.overridePreference("WebKitAllowRunningInsecureContent", true);
10 }
11 if (window.internals)
12     internals.settings.setLaxMixedContentCheckingEnabled(false);
13
14
15 window.addEventListener("message", function (e) {
16     if (window.testRunner)
17         testRunner.notifyDone();
18 }, false);
19
20 </script>
21 <p>This test opens a HTTPS window that loads insecure data via XHR.  We should
22 trigger a mixed content callback because the main frame in the window is HTTPS but
23 now has insecure data.</p>
24 <script>
25 window.open("https://127.0.0.1:8443/security/mixedContent/resources/frame-with-insecure-sync-xhr-post.html");
26 </script>
27 </body>
28 </html>