summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/worker_bug1301094.js
blob: 9deee2c3c5985c9c037c2fead9ec7f9ac0f54f25 (plain)
1
2
3
4
5
6
7
8
9
10
11
onmessage = function(e) {
  var xhr = new XMLHttpRequest();
  xhr.open("POST", "worker_bug1301094.js", false);
  xhr.onload = function() {
    self.postMessage("OK");
  };

  var fd = new FormData();
  fd.append("file", e.data);
  xhr.send(fd);
};