6 var req
= new XMLHttpRequest();
7 req
.open("GET", "hello-world.cgi");
8 req
.setRequestHeader("Cache-Control", "no-cache");
14 if (window
.testRunner
) {
15 testRunner
.waitUntilDone();
16 testRunner
.dumpAsText();
21 // create lots of objects to force a garbage collection
29 // Add a small timeout to give the callbacks a chance to fire
30 if (window
.testRunner
)
31 setTimeout("testRunner.notifyDone()", 100)
35 <body onload=
"runTest()">
36 This tests that aborting and then garbage collecting an XMLHttpRequest does not cause a crash.
37 SUCCESS! Didn't crash.