mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
12 lines
247 B
JavaScript
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);
|
|
}
|