Bug 1571466 - Cleanup unnecessary ESLint global definitions. r=mossop

These are raised as redeclares or unused variables by ESLint 6.

Differential Revision: https://phabricator.services.mozilla.com/D37268

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mark Banner 2019-08-19 07:11:56 +00:00
Родитель b4bb2dc552
Коммит b1970e6a2f
78 изменённых файлов: 25 добавлений и 118 удалений

Просмотреть файл

@ -19,7 +19,7 @@ XPCOMUtils.defineLazyServiceGetters(this, {
// Various tests in this directory may define gTestBrowser, to use as the
// default browser under test in some of the functions below.
/* global gTestBrowser */
/* global gTestBrowser:true */
/**
* Waits a specified number of miliseconds.

Просмотреть файл

@ -557,9 +557,6 @@ XPCOMUtils.defineLazyModuleGetters(this, {
ReaderParent: "resource:///modules/ReaderParent.jsm",
});
/* global ContentPrefServiceParent:false, ContentSearch:false,
UpdateListener:false, webrtcUI:false */
/**
* IF YOU ADD OR REMOVE FROM THIS LIST, PLEASE UPDATE THE LIST ABOVE AS WELL.
* XXX Bug 1325373 is for making eslint detect these automatically.

Просмотреть файл

@ -6,8 +6,7 @@ Services.scriptloader.loadSubScript(
"chrome://mochitests/content/browser/browser/components/places/tests/browser/head.js",
this
);
/* globals withSidebarTree, synthesizeClickOnSelectedTreeCell,
* promiseLibrary, promiseLibraryClosed
/* globals withSidebarTree, synthesizeClickOnSelectedTreeCell, promiseLibrary, promiseLibraryClosed
*/
const PAGE =

Просмотреть файл

@ -13,7 +13,6 @@ add_task(async function testPageActionPopupResize() {
},
},
background: function() {
/* global browser */
browser.tabs.query({ active: true, currentWindow: true }, tabs => {
const tabId = tabs[0].id;

Просмотреть файл

@ -1,6 +1,6 @@
/* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set sts=2 sw=2 et tw=80: */
/* global gBrowser SessionStore */
/* global gBrowser */
"use strict";
add_task(async function test_discarded() {

Просмотреть файл

@ -1,6 +1,6 @@
/* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set sts=2 sw=2 et tw=80: */
/* global gBrowser SessionStore */
/* global gBrowser */
"use strict";
add_task(async function test_highlighted() {

Просмотреть файл

@ -6,8 +6,8 @@
const { AboutNewTab } = ChromeUtils.import(
"resource:///modules/AboutNewTab.jsm"
); // Remove when updating eslint-plugin-mozilla 0.14.0+
/* globals RemotePages */ const { RemotePages } = ChromeUtils.import(
);
const { RemotePages } = ChromeUtils.import(
"resource://gre/modules/remotepagemanager/RemotePageManagerParent.jsm"
);

Просмотреть файл

@ -1,7 +1,6 @@
/* 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/. */
/* globals Services */
"use strict";

Просмотреть файл

@ -1,7 +1,6 @@
/* 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/. */
/* globals Services */
"use strict";

Просмотреть файл

@ -31,8 +31,6 @@ Test the basic-card-form element
<script type="module">
/** Test the basic-card-form element **/
/* global sinon */
import BasicCardForm from "../../res/containers/basic-card-form.js";
let display = document.getElementById("display");

Просмотреть файл

@ -30,8 +30,6 @@ Test the payment-dialog custom element
<script type="module">
/** Test the payment-dialog element **/
/* global sinon */
import PaymentDialog from "../../res/containers/payment-dialog.js";
let el1;

Просмотреть файл

@ -258,7 +258,6 @@
}
_adjustAcItem() {
/* global Cu */
this._adjustAutofillItemLayout();
this.setAttribute("formautofillattached", "true");

Просмотреть файл

@ -10,8 +10,6 @@
* Fluent conversion
*/
/* global content */
const { FormAutofillUtils } = ChromeUtils.import(
"resource://formautofill/FormAutofillUtils.jsm"
);

Просмотреть файл

@ -1,8 +1,6 @@
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
/* global sendAsyncMessage */
"use strict";
/* import-globals-from helper-serviceworker.js */

Просмотреть файл

@ -2,7 +2,6 @@
http://creativecommons.org/publicdomain/zero/1.0/ */
/* eslint-env browser */
/* global browser */
"use strict";

Просмотреть файл

@ -4,8 +4,6 @@
"use strict";
/* global global */
// Configure enzyme with React 16 adapter.
const Enzyme = require("enzyme");
const Adapter = require("enzyme-adapter-react-16");

Просмотреть файл

@ -4,8 +4,6 @@
"use strict";
/* global L10N */
const { mount } = require("enzyme");
const { createFactory } = require("devtools/client/shared/vendor/react");

Просмотреть файл

@ -3,7 +3,6 @@
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
// @flow
/* global window */
import { isDevelopment } from "devtools-environment";

Просмотреть файл

@ -1,7 +1,6 @@
/* 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/>. */
/* global window */
// @flow

Просмотреть файл

@ -4,8 +4,6 @@
// @flow
/* global window */
import type { ThunkArgs, ActionType } from "../../types";
/**

Просмотреть файл

@ -4,8 +4,6 @@
// @flow
/* global window */
/**
* Redux middleware that sets performance markers for all actions such that they
* will appear in performance tooling under the User Timing API

Просмотреть файл

@ -3,7 +3,6 @@
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
// @flow
/* global window */
/**
* A middleware which acts like a service, because it is stateful

Просмотреть файл

@ -1,7 +1,6 @@
/* vim: set ts=2 et sw=2 tw=80: */
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
/* global getPropertyValue waitFor */
"use strict";

Просмотреть файл

@ -4,8 +4,6 @@
* 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/. */
/* global window, BrowserLoader */
"use strict";
const Services = require("Services");

Просмотреть файл

@ -2,7 +2,6 @@
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
/* import-globals-from helper_events_test_runner.js */
/* global sendAsyncMessage */
"use strict";

Просмотреть файл

@ -2,7 +2,6 @@
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
/* import-globals-from helper_events_test_runner.js */
/* global sendAsyncMessage */
"use strict";

Просмотреть файл

@ -3,7 +3,6 @@
/* 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/. */
/* globals getTestActorWithoutToolbox */
"use strict";
// Tests for inspecting a node on a XUL document, spanning a tab reload.

Просмотреть файл

@ -1,7 +1,7 @@
/* 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/. */
/* globals $, $$ */
/* globals $ */
"use strict";
const { PrefObserver } = require("devtools/client/shared/prefs");

Просмотреть файл

@ -1,7 +1,7 @@
/* 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/. */
/* globals $, $$, PerformanceController, OverviewView, DetailsView */
/* globals PerformanceController, OverviewView, DetailsView */
"use strict";
const {

Просмотреть файл

@ -1,7 +1,7 @@
/* 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/. */
/* globals $, $$, PerformanceController */
/* globals $, PerformanceController */
"use strict";
const { extend } = require("devtools/shared/extend");

Просмотреть файл

@ -1,7 +1,7 @@
/* 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/. */
/* globals $, $$, PerformanceController, OverviewView */
/* globals $, PerformanceController, OverviewView */
"use strict";
const { extend } = require("devtools/shared/extend");

Просмотреть файл

@ -1,7 +1,7 @@
/* 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/. */
/* globals $, $$, PerformanceController, OverviewView */
/* globals $, PerformanceController */
"use strict";
const { extend } = require("devtools/shared/extend");

Просмотреть файл

@ -1,7 +1,7 @@
/* 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/. */
/* globals $, $$, PerformanceController, OverviewView */
/* globals $, PerformanceController, OverviewView */
"use strict";
const {

Просмотреть файл

@ -1,7 +1,7 @@
/* 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/. */
/* globals $, $$, PerformanceController, OverviewView, DetailsView */
/* globals $, PerformanceController, OverviewView, DetailsView */
"use strict";
const { extend } = require("devtools/shared/extend");

Просмотреть файл

@ -1,7 +1,7 @@
/* 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/. */
/* globals $, $$, PerformanceController */
/* globals $ PerformanceController */
"use strict";
// No sense updating the overview more often than receiving data from the

Просмотреть файл

@ -1,7 +1,7 @@
/* 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/. */
/* globals $, $$, PerformanceController */
/* globals $, PerformanceController */
"use strict";
const EVENTS = require("../events");

Просмотреть файл

@ -1,7 +1,6 @@
/* 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/>. */
/* globals process, __filename, __dirname */
"use strict";

Просмотреть файл

@ -2,8 +2,6 @@
* 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/. */
/* global XPCNativeWrapper */
"use strict";
const { Services } = require("resource://gre/modules/Services.jsm");

Просмотреть файл

@ -4,8 +4,6 @@
"use strict";
/* global XPCNativeWrapper */
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
loader.lazyRequireGetter(

Просмотреть файл

@ -5,8 +5,6 @@
"use strict";
/* global DebuggerServer */
/**
* Test actor designed to check that clients are properly notified of errors when calling
* methods on old style actors.

Просмотреть файл

@ -2,7 +2,6 @@
* 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/. */
/* global __URI__ */
/* exported Loader, resolveURI, Module, Require, unload */
"use strict";

Просмотреть файл

@ -4,8 +4,6 @@
"use strict";
/* global uneval */
const { Cc, Cr, CC } = require("chrome");
const DevToolsUtils = require("devtools/shared/DevToolsUtils");
const { dumpn, dumpv } = DevToolsUtils;

Просмотреть файл

@ -18,7 +18,7 @@
*
*/
/* exported EXPORTED_SYMBOLS*/
/* globals Components */
"use strict";
const { XPCOMUtils } = ChromeUtils.import(

Просмотреть файл

@ -1,7 +1,6 @@
/* 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 https://mozilla.org/MPL/2.0/. */
/* globals Components, Task, PromiseMessage */
"use strict";
const { PromiseMessage } = ChromeUtils.import(

Просмотреть файл

@ -23,7 +23,6 @@
*
* exported ManifestObtainer
*/
/* globals Components, Task, PromiseMessage, XPCOMUtils, ManifestProcessor, BrowserUtils*/
"use strict";
const { PromiseMessage } = ChromeUtils.import(

Просмотреть файл

@ -18,7 +18,6 @@
* TODO: The constructor should accept the UA's supported orientations.
* TODO: The constructor should accept the UA's supported display modes.
*/
/* globals Components, ValueExtractor, ImageObjectProcessor, ConsoleAPI*/
"use strict";
const { XPCOMUtils } = ChromeUtils.import(

Просмотреть файл

@ -5,7 +5,6 @@
* Helper functions extract values from manifest members
* and reports conformance errors.
*/
/* globals Components*/
"use strict";
const { XPCOMUtils } = ChromeUtils.import(

Просмотреть файл

@ -1,5 +1,5 @@
// Used by JSHint:
/* global ok, is, Cu, BrowserTestUtils, add_task, gBrowser, makeTestURL, requestLongerTimeout*/
/* global ok, is, Cu, BrowserTestUtils, add_task, gBrowser, requestLongerTimeout*/
"use strict";
const { ManifestObtainer } = ChromeUtils.import(

Просмотреть файл

@ -1,7 +1,6 @@
/**
* Common infrastructure for manifest tests.
**/
/* globals SpecialPowers, ManifestProcessor*/
"use strict";
const { ManifestProcessor } = SpecialPowers.Cu.import(
"resource://gre/modules/ManifestProcessor.jsm"

Просмотреть файл

@ -3,14 +3,11 @@
/* 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/. */
/* jshint esnext:true, globalstrict:true, moz:true, undef:true, unused:true */
/* globals Components, dump */
"use strict";
var EXPORTED_SYMBOLS = ["ControllerStateMachine"]; // jshint ignore:line
/* globals State, CommandType */
const { CommandType, State } = ChromeUtils.import(
"resource://gre/modules/presentation/StateMachineHelper.jsm"
);

Просмотреть файл

@ -3,14 +3,11 @@
/* 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/. */
/* jshint esnext:true, globalstrict:true, moz:true, undef:true, unused:true */
/* globals Components, dump */
"use strict";
var EXPORTED_SYMBOLS = ["ReceiverStateMachine"]; // jshint ignore:line
/* globals State, CommandType */
const { CommandType, State } = ChromeUtils.import(
"resource://gre/modules/presentation/StateMachineHelper.jsm"
);

Просмотреть файл

@ -1,7 +1,6 @@
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/* global Services, do_register_cleanup, do_test_pending */
"use strict";

Просмотреть файл

@ -1,20 +1,15 @@
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
/* jshint esnext:true, globalstrict:true, moz:true, undef:true, unused:true */
/* globals Components,Assert,run_next_test,add_test,do_execute_soon */
"use strict";
/* globals ControllerStateMachine */
const { ControllerStateMachine } = ChromeUtils.import(
"resource://gre/modules/presentation/ControllerStateMachine.jsm"
);
/* globals ReceiverStateMachine */
const { ReceiverStateMachine } = ChromeUtils.import(
"resource://gre/modules/presentation/ReceiverStateMachine.jsm"
);
/* globals State */
const { State } = ChromeUtils.import(
"resource://gre/modules/presentation/StateMachineHelper.jsm"
);

Просмотреть файл

@ -71,7 +71,6 @@ function test() {
uuid = uuid.slice(1, -1); // Strip { and } off the UUID.
const url = `moz-extension://${uuid}/`;
/* globals MatchPatternSet, WebExtensionPolicy */
let policy = new WebExtensionPolicy({
id: FAKE_ADDON_ID,
mozExtensionHostname: uuid,

Просмотреть файл

@ -2,8 +2,6 @@
* 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/. */
/* globals LoadContextInfo, FormHistory, Accounts */
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm"

Просмотреть файл

@ -20,7 +20,7 @@ const Cm = Components.manager;
const { updateAppInfo } = ChromeUtils.import(
"resource://testing-common/AppInfo.jsm"
); // Imported via AppInfo.jsm.
/* global updateAppInfo:false */ updateAppInfo();
updateAppInfo();
// We must get the profile before performing operations on the cert db.
do_get_profile();

Просмотреть файл

@ -928,5 +928,4 @@ class SyncTelemetryImpl {
}
}
/* global SyncTelemetry */
var SyncTelemetry = new SyncTelemetryImpl(ENGINES);

Просмотреть файл

@ -292,7 +292,7 @@ async function test_apply_same_record_with_different_times() {
true,
true
);
/* eslint-enable no-unsed-vars */
/* eslint-enable no-unused-vars */
}
async function test_LoginRec_toString(store, recordData) {

Просмотреть файл

@ -4,8 +4,6 @@
"use strict";
/* global Pipe, ScriptableInputStream */
const CC = Components.Constructor;
const { EventEmitter } = ChromeUtils.import(

Просмотреть файл

@ -22,6 +22,7 @@
/* globals Cc, Ci */
/* defined by this file but is defined as read-only for tests */
// eslint-disable-next-line no-redeclare
/* globals runningInParent: true */
/* may be defined in test files */

Просмотреть файл

@ -528,13 +528,14 @@ CaptivePortalDetector.prototype = {
},
};
/* globals debug: true */
var debug;
if (DEBUG) {
// eslint-disable-next-line no-global-assign
debug = function(s) {
dump("-*- CaptivePortalDetector component: " + s + "\n");
};
} else {
// eslint-disable-next-line no-global-assign
debug = function(s) {};
}

Просмотреть файл

@ -14,7 +14,6 @@ var EXPORTED_SYMBOLS = [
];
/* exported Extension, ExtensionData */
/* globals Extension ExtensionData */
/*
* This file is the main entry point for extensions. When an extension

Просмотреть файл

@ -7,8 +7,6 @@
var EXPORTED_SYMBOLS = ["ExtensionContent"];
/* globals ExtensionContent */
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm"

Просмотреть файл

@ -10,7 +10,7 @@
getContainerForCookieStoreId,
isValidCookieStoreId, isContainerCookieStoreId,
EventManager, URL */
/* global getCookieStoreIdForTab:false, getCookieStoreIdForOriginAttributes:false,
/* global getCookieStoreIdForTab:false,
getCookieStoreIdForContainer:false,
getContainerForCookieStoreId: false,
isValidCookieStoreId:false, isContainerCookieStoreId:false,

Просмотреть файл

@ -1,7 +1,5 @@
"use strict";
/* globals InspectorUtils */
// Case 1 - When there is a theme_frame image and additional_backgrounds_alignment is not specified.
// So background-position should default to "right top"
add_task(async function test_default_additional_backgrounds_alignment() {

Просмотреть файл

@ -57,7 +57,6 @@ let experimentFiles = {
};
},
/* globals ExtensionAPI */
"child.js": () => {
this.userinputtest = class extends ExtensionAPI {
getAPI(context) {

Просмотреть файл

@ -29,9 +29,6 @@ AddonTestUtils.init(this);
createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1", "69");
/* globals BulkKeyBundle, CommonUtils, EncryptionRemoteTransformer */
/* globals Utils */
function handleCannedResponse(cannedResponse, request, response) {
response.setStatusLine(
null,

Просмотреть файл

@ -20,7 +20,6 @@
*/
/* eslint-env mozilla/chrome-worker, node */
/* global OS */
// eslint-disable-next-line no-lone-blocks
{

Просмотреть файл

@ -23,8 +23,6 @@ const { debug, warn } = GeckoViewUtils.initLogging(
var EXPORTED_SYMBOLS = ["GeckoViewTelemetryController"];
/* global debug warn */
// Persistent data loading topic - see TelemetryGeckoViewPersistence.cpp.
const LOAD_COMPLETE_TOPIC = "internal-telemetry-geckoview-load-complete";

Просмотреть файл

@ -552,7 +552,6 @@ if (runningInParent) {
);
// This gets imported via fakeNow();
/* global TelemetrySend */
registerCleanupFunction(() => TelemetrySend.shutdown());
}

Просмотреть файл

@ -5,7 +5,6 @@
/* eslint-env mozilla/frame-script */
/* eslint no-unused-vars: ["error", {args: "none"}] */
/* global sendAsyncMessage */
var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
var { XPCOMUtils } = ChromeUtils.import(

Просмотреть файл

@ -12,10 +12,8 @@ const { XPCOMUtils } = ChromeUtils.import(
const { AddonManager, AddonManagerPrivate } = ChromeUtils.import(
"resource://gre/modules/AddonManager.jsm"
);
/* globals AddonManagerPrivate*/
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { OS } = ChromeUtils.import("resource://gre/modules/osfile.jsm");
/* globals OS*/
const { Log } = ChromeUtils.import("resource://gre/modules/Log.jsm");
// These symbols are, unfortunately, accessed via the module global from
// tests, and therefore cannot be lexical definitions.

Просмотреть файл

@ -11,7 +11,6 @@ var EXPORTED_SYMBOLS = [];
const { AddonManager, AddonManagerPrivate } = ChromeUtils.import(
"resource://gre/modules/AddonManager.jsm"
);
/* globals AddonManagerPrivate*/
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.defineModuleGetter(

Просмотреть файл

@ -31,15 +31,12 @@ const { OS } = ChromeUtils.import("resource://gre/modules/osfile.jsm");
XPCOMUtils.defineLazyGlobalGetters(this, ["XMLHttpRequest"]);
/* globals GMPPrefs */
ChromeUtils.defineModuleGetter(
this,
"GMPPrefs",
"resource://gre/modules/GMPUtils.jsm"
);
/* globals OS */
ChromeUtils.defineModuleGetter(
this,
"UpdateUtils",

Просмотреть файл

@ -51,12 +51,7 @@ XPCOMUtils.defineLazyPreferenceGetter(
const { nsIBlocklistService } = Ci;
// These are injected from XPIProvider.jsm
/* globals
* BOOTSTRAP_REASONS,
* DB_SCHEMA,
* XPIStates,
* migrateAddonLoader
*/
/* globals BOOTSTRAP_REASONS, DB_SCHEMA, XPIStates, migrateAddonLoader */
for (let sym of [
"BOOTSTRAP_REASONS",

Просмотреть файл

@ -23,8 +23,6 @@ var EXPORTED_SYMBOLS = [
"verifyBundleSignedState",
];
/* globals DownloadAddonInstall, LocalAddonInstall */
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm"

Просмотреть файл

@ -19,8 +19,6 @@
var EXPORTED_SYMBOLS = ["XPIProvider", "XPIInternal"];
/* globals WebExtensionPolicy */
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm"

Просмотреть файл

@ -4020,6 +4020,7 @@ function start_httpserver() {
gTestserver.registerPathHandler("/" + gHTTPHandlerPath, pathHandler);
gTestserver.start(-1);
let testserverPort = gTestserver.identity.primaryPort;
// eslint-disable-next-line no-global-assign
gURLData = URL_HOST + ":" + testserverPort + "/";
debugDump("http server port = " + testserverPort);
}