mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
fe7079bf0c
--HG-- extra : rebase_source : 6ca1c139896f47de428a430e731d39125a0f0435
17 lines
373 B
JavaScript
17 lines
373 B
JavaScript
/**
|
|
* 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.lastModifiedDate = file.lastModifiedDate;
|
|
rtnObj.mozFullPath = file.mozFullPath;
|
|
|
|
postMessage(rtnObj);
|
|
};
|