Skip to content

Instantly share code, notes, and snippets.

@k-hamada
Created March 28, 2017 15:15
Show Gist options
  • Save k-hamada/566e0adfc00b28fb091217d8b8ab32cf to your computer and use it in GitHub Desktop.
Save k-hamada/566e0adfc00b28fb091217d8b8ab32cf to your computer and use it in GitHub Desktop.
diff --git xpi/chrome/content/library/utility.js xpi/chrome/content/library/utility.js
index 180c382..9520b19 100755
--- xpi/chrome/content/library/utility.js
+++ xpi/chrome/content/library/utility.js
@@ -872,7 +872,7 @@ function simpleRequest(url, opt) {
if (file instanceof IFile) {
// https://developer.mozilla.org/en-US/docs/Extensions/Using_the_DOM_File_API_in_chrome_code
- file = sendContent[key] = new File(file);
+ file = sendContent[key] = File.createFromNsIFile(file);
}
if (file instanceof File) {
@k-hamada
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment