Bug 1513449 - Restore |Cu.importGlobalProperties([File, FileReader]);| in ext-cloudFile.js. rs=bustage-fix
authorJorg K <jorgk@jorgk.com>
Wed, 12 Dec 2018 13:09:53 +0100
changeset 33985 9113e787783c039a06e39a542fe27f61583a96c7
parent 33984 999ba6d634bbe785ee61bc233e55319a3333cca9
child 33986 1f0bcf57572f4f1972ec9d5fc1d661ec2ef5d13c
push id389
push userclokep@gmail.com
push dateMon, 18 Mar 2019 19:01:53 +0000
reviewersbustage-fix
bugs1513449
Bug 1513449 - Restore |Cu.importGlobalProperties([File, FileReader]);| in ext-cloudFile.js. rs=bustage-fix
mail/components/extensions/parent/ext-cloudFile.js
--- a/mail/components/extensions/parent/ext-cloudFile.js
+++ b/mail/components/extensions/parent/ext-cloudFile.js
@@ -2,16 +2,19 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
 ChromeUtils.import("resource://gre/modules/ExtensionParent.jsm");
 ChromeUtils.import("resource:///modules/cloudFileAccounts.js");
 
+// eslint-disable-next-line mozilla/reject-importGlobalProperties
+Cu.importGlobalProperties(["File", "FileReader"]);
+
 async function promiseFileRead(nsifile) {
   let blob = await File.createFromNsIFile(nsifile);
 
   return new Promise((resolve, reject) => {
     let reader = new FileReader();
     reader.addEventListener("loadend", () => {
       resolve(reader.result);
     });