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 33131 9113e787783c
parent 33130 999ba6d634bb
child 33132 1f0bcf57572f
push id2368
push userclokep@gmail.com
push dateMon, 28 Jan 2019 21:12:50 +0000
treeherdercomm-beta@56d23c07d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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);
     });