Bug 1514594: Follow-up: Fix ESLint error. r=bustage CLOSED TREE
authorKris Maglione <maglione.k@gmail.com>
Mon, 28 Jan 2019 16:30:26 -0800
changeset 513678 4a5acf832e58
parent 513677 6b56696d713a
child 513679 12664a5172dc
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1514594
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1514594: Follow-up: Fix ESLint error. r=bustage CLOSED TREE
mobile/android/extensions/report-site-issue/experimentalAPIs/tabExtras.js
--- a/mobile/android/extensions/report-site-issue/experimentalAPIs/tabExtras.js
+++ b/mobile/android/extensions/report-site-issue/experimentalAPIs/tabExtras.js
@@ -1,30 +1,32 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * 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";
 
 /* global ChromeUtils, ExtensionAPI, ExtensionCommon, XPCOMUtils */
 
+var Services;
+
 ChromeUtils.defineModuleGetter(this, "EventDispatcher",
                                "resource://gre/modules/Messaging.jsm");
 
 ChromeUtils.defineModuleGetter(this, "PrivateBrowsingUtils",
                                "resource://gre/modules/PrivateBrowsingUtils.jsm");
 
 XPCOMUtils.defineLazyGlobalGetters(this, ["URL"]);
 
 XPCOMUtils.defineLazyGetter(this, "GlobalEventDispatcher", () => EventDispatcher.instance);
 
 function getInfoFrameScript(messageName) {
   /* eslint-env mozilla/frame-script */
 
-  const {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");
+  ({Services} = ChromeUtils.import("resource://gre/modules/Services.jsm"));
 
   function getInnerWindowId(window) {
     return window.windowUtils.currentInnerWindowID;
   }
 
   function getInnerWindowIDsForAllFrames(window) {
     const innerWindowID = getInnerWindowId(window);
     let ids = [innerWindowID];