summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/xhr_abortinprogress.html
blob: 5345e9bf25396977f30e4117dc37cc339ea0d0bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset=UTF-8>
<script>"use strict";
(function(){
  var req = new XMLHttpRequest();
  req.open('GET', '?' + Date.now());
  req.responseType = 'moz-blob';
  var b = null;
  req.onprogress = function(e) {
    b = req.response;
  };
  req.onreadystatechange = function(e) {
    if (req.readyState == 3) {
      req.abort();
    }
    if (req.readyState == 4) {
      document.documentElement.removeAttribute('class');
    }
  };
  req.send();
})();
</script>