2 <html class=
"reftest-wait">
4 <title>Testcase for bug
552651</title>
5 <script class=
"testbody" type=
"text/javascript">
7 function testCancel() {
8 var xhr = new XMLHttpRequest();
9 xhr.addEventListener(
"readystatechange", function(e) {
10 if (xhr.readyState ==
3) // NOTE : only leaks for state ==
3
12 else if (xhr.readyState ==
4)
13 document.documentElement.className =
"";
16 xhr.open(
"GET",
"552651.xml", true);
21 <body onload=
"testCancel()">
22 This test should not leak...