content/base/crashtests/552651.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/base/crashtests/552651.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html class="reftest-wait">
     1.6 +<head>
     1.7 +  <title>Testcase for bug 552651</title>
     1.8 +  <script class="testbody" type="text/javascript">
     1.9 +
    1.10 +function testCancel() {
    1.11 +  var xhr = new XMLHttpRequest();
    1.12 +  xhr.addEventListener("readystatechange", function(e) {
    1.13 +    if (xhr.readyState == 3) // NOTE : only leaks for state == 3
    1.14 +      xhr.abort();
    1.15 +    else if (xhr.readyState == 4)
    1.16 +      document.documentElement.className = "";
    1.17 +  }, false);
    1.18 +
    1.19 +  xhr.open("GET", "552651.xml", true);
    1.20 +  xhr.send();
    1.21 +}
    1.22 +</script>
    1.23 +</head>
    1.24 +<body onload="testCancel()">
    1.25 +This test should not leak...
    1.26 +</body>
    1.27 +</html>
    1.28 +

mercurial