summaryrefslogtreecommitdiffstats
path: root/dom/html/test/formSubmission_chrome.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/html/test/formSubmission_chrome.js')
-rw-r--r--dom/html/test/formSubmission_chrome.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/html/test/formSubmission_chrome.js b/dom/html/test/formSubmission_chrome.js
new file mode 100644
index 000000000..540a11755
--- /dev/null
+++ b/dom/html/test/formSubmission_chrome.js
@@ -0,0 +1,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)));
+});