1 onmessage = function(event) {
3 var worker = new Worker('jsm_url_worker.js');
4 worker.onmessage = function(event) {
5 postMessage(event.data);
8 worker.postMessage(event.data - 1);
14 if ((URL instanceof Object)) {
20 postMessage({type: 'status', status: status, msg: 'URL object:' + URL});
30 postMessage({type: 'status', status: status, msg: 'Blob:' + blob});
35 url = URL.createObjectURL(blob);
40 postMessage({type: 'status', status: status, msg: 'Blob URL:' + url});
44 URL.revokeObjectURL(url);
49 postMessage({type: 'status', status: status, msg: 'Blob Revoke URL'});
54 url = URL.createObjectURL(true);
59 postMessage({type: 'status', status: status, msg: 'CreateObjectURL should fail if the arg is not a blob'});
64 url = URL.createObjectURL(blob);
69 postMessage({type: 'status', status: status, msg: 'Blob URL2:' + url});
70 postMessage({type: 'url', url: url});
74 URL.createObjectURL(new Object());
79 postMessage({type: 'status', status: status, msg: 'Exception wanted' });
81 postMessage({type: 'finish' });