dom/xhr/tests/browser_xhr_onchange_leak.html
author Andrew McCreight <continuation@gmail.com>
Fri, 17 Feb 2017 11:22:45 -0800
changeset 378639 29545b8aada77f12112e9362d3065342bcbf2d34
permissions -rw-r--r--
Bug 1336811 - Clear mWaitingForOnStopRequest in CloseRequest. r=smaug a=jcristau Otherwise, if a tab is closed when we have a request pending, we'll end up leaking the page forever, due to CC optimizations. MozReview-Commit-ID: E5NC0jxWCur

<!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>