content/base/crashtests/552651.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE HTML>
     2 <html class="reftest-wait">
     3 <head>
     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
    11       xhr.abort();
    12     else if (xhr.readyState == 4)
    13       document.documentElement.className = "";
    14   }, false);
    16   xhr.open("GET", "552651.xml", true);
    17   xhr.send();
    18 }
    19 </script>
    20 </head>
    21 <body onload="testCancel()">
    22 This test should not leak...
    23 </body>
    24 </html>

mercurial