diff --git a/browser/base/content/test/plugins/head.js b/browser/base/content/test/plugins/head.js index 1606ccea84ae..366efc00d2da 100644 --- a/browser/base/content/test/plugins/head.js +++ b/browser/base/content/test/plugins/head.js @@ -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. diff --git a/browser/components/BrowserGlue.jsm b/browser/components/BrowserGlue.jsm index 5b3877dbc045..769b4a9a1399 100644 --- a/browser/components/BrowserGlue.jsm +++ b/browser/components/BrowserGlue.jsm @@ -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. diff --git a/browser/components/extensions/test/browser/browser_ext_contextMenus.js b/browser/components/extensions/test/browser/browser_ext_contextMenus.js index 7f2895d445a3..a145470995ba 100644 --- a/browser/components/extensions/test/browser/browser_ext_contextMenus.js +++ b/browser/components/extensions/test/browser/browser_ext_contextMenus.js @@ -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 = diff --git a/browser/components/extensions/test/browser/browser_ext_pageAction_popup_resize.js b/browser/components/extensions/test/browser/browser_ext_pageAction_popup_resize.js index 90f31d3cadf7..ddb14385b99f 100644 --- a/browser/components/extensions/test/browser/browser_ext_pageAction_popup_resize.js +++ b/browser/components/extensions/test/browser/browser_ext_pageAction_popup_resize.js @@ -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; diff --git a/browser/components/extensions/test/browser/browser_ext_tabs_discard.js b/browser/components/extensions/test/browser/browser_ext_tabs_discard.js index a2b51ab10e34..38e261ab66d4 100644 --- a/browser/components/extensions/test/browser/browser_ext_tabs_discard.js +++ b/browser/components/extensions/test/browser/browser_ext_tabs_discard.js @@ -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() { diff --git a/browser/components/extensions/test/browser/browser_ext_tabs_highlight.js b/browser/components/extensions/test/browser/browser_ext_tabs_highlight.js index 8b47038520cd..3e97d8d2072a 100644 --- a/browser/components/extensions/test/browser/browser_ext_tabs_highlight.js +++ b/browser/components/extensions/test/browser/browser_ext_tabs_highlight.js @@ -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() { diff --git a/browser/components/newtab/lib/ActivityStreamMessageChannel.jsm b/browser/components/newtab/lib/ActivityStreamMessageChannel.jsm index b21d5e1c3ef7..53aca154d9a3 100644 --- a/browser/components/newtab/lib/ActivityStreamMessageChannel.jsm +++ b/browser/components/newtab/lib/ActivityStreamMessageChannel.jsm @@ -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" ); diff --git a/browser/components/newtab/lib/TelemetryFeed.jsm b/browser/components/newtab/lib/TelemetryFeed.jsm index f0c3b14a50f9..83ad0c240275 100644 --- a/browser/components/newtab/lib/TelemetryFeed.jsm +++ b/browser/components/newtab/lib/TelemetryFeed.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"; diff --git a/browser/components/newtab/lib/UTEventReporting.jsm b/browser/components/newtab/lib/UTEventReporting.jsm index e69610948e1f..d0e2fb4c160d 100644 --- a/browser/components/newtab/lib/UTEventReporting.jsm +++ b/browser/components/newtab/lib/UTEventReporting.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"; diff --git a/browser/components/payments/test/mochitest/test_basic_card_form.html b/browser/components/payments/test/mochitest/test_basic_card_form.html index 2d594e7423b5..2ff9fd9efdc5 100644 --- a/browser/components/payments/test/mochitest/test_basic_card_form.html +++ b/browser/components/payments/test/mochitest/test_basic_card_form.html @@ -31,8 +31,6 @@ Test the basic-card-form element