diff -r 000000000000 -r 6474c204b198 dom/workers/test/file_worker.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dom/workers/test/file_worker.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,17 @@ +/** + * Expects a file. Returns an object containing the size, type, name and path. + */ +onmessage = function(event) { + var file = event.data; + + var rtnObj = new Object(); + + rtnObj.size = file.size; + rtnObj.type = file.type; + rtnObj.name = file.name; + rtnObj.path = file.path; + rtnObj.lastModifiedDate = file.lastModifiedDate; + rtnObj.mozFullPath = file.mozFullPath; + + postMessage(rtnObj); +};