summaryrefslogtreecommitdiffstats
path: root/dom/html/test/formSubmission_chrome.js
blob: 540a11755b6647ed2b3e20a75be378598aabf3d4 (plain)
1
2
3
4
5
6
var { classes: Cc, interfaces: Ci, utils: Cu } = Components;
Cu.importGlobalProperties(["File"]);

addMessageListener("files.open", function (message) {
  sendAsyncMessage("files.opened", message.map(path => File.createFromFileName(path)));
});