summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/test_bug1317725.js
blob: 858488fac338e2bd0d18337ec3068c6188cdd353 (plain)
1
2
3
4
5
6
7
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/");
};