mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
28 lines
593 B
HTML
28 lines
593 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();
|
|
}, false);
|
|
|
|
xhr.open("GET", "552651.xml", true);
|
|
xhr.send();
|
|
|
|
setTimeout(function f() {
|
|
document.documentElement.className = "";
|
|
}, 1000);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="testCancel()">
|
|
This test should not leak...
|
|
</body>
|
|
</html>
|
|
|