Files
UXP-Fixed/dom/workers/test/worker_bug1301094.js
T
2018-02-02 04:16:08 -05:00

12 lines
247 B
JavaScript

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);
}