summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/test_bug1317725.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dom/workers/test/test_bug1317725.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/workers/test/test_bug1317725.js b/dom/workers/test/test_bug1317725.js
new file mode 100644
index 0000000000..858488fac3
--- /dev/null
+++ b/dom/workers/test/test_bug1317725.js
@@ -0,0 +1,8 @@
+onmessage = function (e) {
+ var data = new FormData();
+ data.append("Filedata", e.data.slice(0, 127), encodeURI(e.data.name));
+ var xhr = new XMLHttpRequest();
+ xhr.open("POST", location.href, false);
+ xhr.send(data);
+ postMessage("No crash \\o/");
+};