DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (c68fe15a81fc)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<!DOCTYPE HTML>
<html class="reftest-wait">
<head>
  <title>Testcase for bug 552651</title>
  <script class="testbody" type="text/javascript">

function testCancel() {
  var xhr = new XMLHttpRequest();
  xhr.addEventListener("readystatechange", function(e) {
    if (xhr.readyState == 3) // NOTE : only leaks for state == 3
      xhr.abort();
    else if (xhr.readyState == 4)
      document.documentElement.className = "";
  });

  xhr.open("GET", "552651.xml", true);
  xhr.send();
}
</script>
</head>
<body onload="testCancel()">
This test should not leak...
</body>
</html>