mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 07:05:24 +00:00
26 lines
586 B
HTML
26 lines
586 B
HTML
<!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 = "";
|
|
}, false);
|
|
|
|
xhr.open("GET", "552651.xml", true);
|
|
xhr.send();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="testCancel()">
|
|
This test should not leak...
|
|
</body>
|
|
</html>
|
|
|