mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 12:51:09 +02:00
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D35951 --HG-- extra : source : 62f3501af4bc1c0bd1ee1977a28aee04706a6663
11 lines
248 B
JavaScript
11 lines
248 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);
|
|
};
|