Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / xmlhttprequest / xmlhttprequest-detached-mixedcontent-no-crash.html
blob0bcd6c8cf56ebce87918b703f81c4a1b3effc25b
1 <!DOCTYPE HTML>
2 <body>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <script>
7 description("Performing mixed content checks in a detached setting shouldn't crash.");
9 window.jsTestIsAsync = true;
11 var w;
12 var xhr;
13 function processMessage(event) {
14 if (event.data == "opened") {
15 xhr = new w.XMLHttpRequest();
16 xhr.open('GET', 'http://user:pass@127.0.0.1:8000/doesNotExist', false);
17 w.close();
18 } else if (event.data == "closed") {
19 shouldThrow("xhr.send()");
20 finishJSTest();
24 if (window.testRunner) {
25 testRunner.dumpAsText();
26 testRunner.setCanOpenWindows();
28 w = window.open('../../resources/window-postmessage-open-close.html');
29 window.addEventListener("message", processMessage, false);
30 </script>
31 </body>