summaryrefslogtreecommitdiffstats
path: root/dom/xhr/tests/browser_xhr_onchange_leak.html
blob: 56eb455330c2543d772bb36b02e5fa038899ee3e (plain)
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>
<!--
Test page for https://bugzilla.mozilla.org/show_bug.cgi?id=1336811
-->
<head>
  <meta charset="utf-8">
  <title>Test page for Bug 1336811</title>
</head>
<body onload="onload();">
<p><span id="samplepage">sample page</span></p>
<script type="application/javascript">
  function onload() {
   var request = new XMLHttpRequest;
   request.open("GET", "about:blank");
   request.onreadystatechange = function() {
     request.foo = request;
   }
   request.foo = request;
   request.send();
   request.foo = request;
  }
</script>
</body>
</html>