Bug 1433411 - Import `fetch` API in nsBrowserGlue. r=Gijs a=RyanVM
authorZibi Braniecki <zbraniecki@mozilla.com>
Fri, 26 Jan 2018 08:28:51 -0800
changeset 454723 e8928484234d092ea9e5d6771c296d0a42a8b3da
parent 454722 a2cd586a63ecd6483c5aef6e00b456164064d818
child 454724 9dbb3d090a27b36a5a11e14621c4c37b44e8f410
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, RyanVM
bugs1433411
milestone59.0
Bug 1433411 - Import `fetch` API in nsBrowserGlue. r=Gijs a=RyanVM MozReview-Commit-ID: 4jgi2NOu81A
browser/components/nsBrowserGlue.js
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
@@ -8,16 +8,18 @@ const Cr = Components.results;
 const Cu = Components.utils;
 
 const XULNS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
 
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource://gre/modules/AppConstants.jsm");
 
+Cu.importGlobalProperties(["fetch"]);
+
 XPCOMUtils.defineLazyServiceGetter(this, "WindowsUIUtils", "@mozilla.org/windows-ui-utils;1", "nsIWindowsUIUtils");
 XPCOMUtils.defineLazyGetter(this, "WeaveService", () =>
   Cc["@mozilla.org/weave/service;1"].getService().wrappedJSObject
 );
 
 // lazy module getters
 
 XPCOMUtils.defineLazyModuleGetters(this, {