mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-10 11:54:40 +00:00
18 lines
388 B
JavaScript
18 lines
388 B
JavaScript
/**
|
|
* Expects a blob. Returns an object containing the size, type.
|
|
* Used to test posting of blob from worker to worker.
|
|
*/
|
|
onmessage = function(event) {
|
|
var worker = new Worker("fileBlob_worker.js");
|
|
|
|
worker.postMessage(event.data);
|
|
|
|
worker.onmessage = function(event) {
|
|
postMessage(event.data);
|
|
}
|
|
|
|
worker.onerror = function(event) {
|
|
postMessage(undefined);
|
|
}
|
|
};
|