6 XHR[numXHRs] = new XMLHttpRequest();
7 XHR[numXHRs].onreadystatechange = handleStateChange;
8 XHR[numXHRs].open("GET", "nested-event-remove-node-crash-expected.txt", true);
9 XHR[numXHRs].send(null);
10 numXHRs = numXHRs + 1;
13 function callback(response)
15 document.getElementById("replaceMe").innerHTML = "";
16 document.getElementById("replaceMe").innerHTML = response;
17 if (window.layoutTestController && (run == 2))
18 layoutTestController.notifyDone();
21 function handleStateChange()
23 if ((XHR[0].readyState == 4) && (run < 2)) { // yes this looks wrong but it's how to reproduce the bug
25 callback(XHR[0].responseText);
33 2. send an XHR who's handler will remove the node
34 3. the focused node's onblur will fire
35 4. the onblur event handler will send off an XHR who's handler will remove the node
37 document.getElementById("theSelect").focus();
40 if (window.layoutTestController) {
41 layoutTestController.waitUntilDone();
42 layoutTestController.dumpAsText();
49 if (window.GCController)
50 GCController.collect();
52 for (var i = 0; i < 10000; ++i) {
59 var XHR = new Array();
65 <body onload="test()">
70 <select id="theSelect" onblur="sendXHR();GC();">