summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/xhr_abortinprogress.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/crashtests/xhr_abortinprogress.html')
-rw-r--r--dom/base/crashtests/xhr_abortinprogress.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/dom/base/crashtests/xhr_abortinprogress.html b/dom/base/crashtests/xhr_abortinprogress.html
new file mode 100644
index 000000000..5345e9bf2
--- /dev/null
+++ b/dom/base/crashtests/xhr_abortinprogress.html
@@ -0,0 +1,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>