Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / docLoaderFrame.html
blob176c2fa615e21d376e99c22995204db6651d6312
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <title>Crash XML Parser</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6 <script language="JavaScript" type="text/JavaScript">
8 var rq;
10 function loadXMLDoc()
12 url = 'resources/docLoaderFrame-data.html';
14 rq = false;
16 try {
17 if (window.XMLHttpRequest) {
18 rq = new XMLHttpRequest();
19 rq.overrideMimeType('text/xml');
20 rq.onreadystatechange = processReqChange;
21 rq.open('GET', url, true);
22 rq.send();
24 } catch (ex) {
25 rq = false;
26 alert(ex);
30 function processReqChange()
32 if (rq.readyState == 4) {
33 if (rq.status == 200) {
34 var xmlDoc = rq.responseXML;
35 document.getElementById("result").textContent = "SUCCESS (did not crash)";
36 } else {
37 alert('There was a problem retrieving the XML data: ' + rq.statusText);
40 if (window.testRunner) {
41 testRunner.notifyDone();
45 </script>
46 </head>
48 <body onLoad="javascript:loadXMLDoc();">
49 <p>Test for <a href="rdar://problem/4298052">rdar://problem/4298052</a>: Crash in KWQCheckIfReloading at http://www.inquisitorx.com/beta/</p>
50 <p id="result"></p>
51 <script>
52 if (window.testRunner) {
53 testRunner.dumpAsText();
54 testRunner.waitUntilDone();
56 </script>
57 </body>
58 </html>