commit 671d149f8512ffc96be98ec92b96e9996a335ea4 parent 50180cc5e9903a8e070ceca500e8c38ff90fadcb Author: Gijs Kruitbosch <gijskruitbosch@gmail.com> Date: Tue, 30 Sep 2025 15:28:03 +0000 Bug 1967204 - remove superfluous eslint-env annotations from browser/base, r=frontend-codestyle-reviewers,mossop Differential Revision: https://phabricator.services.mozilla.com/D266831 Diffstat:
27 files changed, 0 insertions(+), 66 deletions(-)
diff --git a/browser/base/content/browser-a11yUtils.js b/browser/base/content/browser-a11yUtils.js @@ -2,9 +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/. */ -// This file is loaded into the browser window scope. -/* eslint-env mozilla/browser-window */ - /** * Utility functions for UI accessibility. */ diff --git a/browser/base/content/browser-addons.js b/browser/base/content/browser-addons.js @@ -3,9 +3,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/. */ -// This file is loaded into the browser window scope. -/* eslint-env mozilla/browser-window */ - var { XPCOMUtils } = ChromeUtils.importESModule( "resource://gre/modules/XPCOMUtils.sys.mjs" ); diff --git a/browser/base/content/browser-commands.js b/browser/base/content/browser-commands.js @@ -3,8 +3,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/. */ -/* eslint-env mozilla/browser-window */ - "use strict"; var kSkipCacheFlags = diff --git a/browser/base/content/browser-context.js b/browser/base/content/browser-context.js @@ -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/. */ -/* eslint-env mozilla/browser-window */ - document.addEventListener( "DOMContentLoaded", () => { diff --git a/browser/base/content/browser-customization.js b/browser/base/content/browser-customization.js @@ -3,9 +3,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/. */ -// This file is loaded into the browser window scope. -/* eslint-env mozilla/browser-window */ - /** * Customization handler prepares this browser window for entering and exiting * customization mode by handling customizationstarting and aftercustomization diff --git a/browser/base/content/browser-fullScreenAndPointerLock.js b/browser/base/content/browser-fullScreenAndPointerLock.js @@ -3,9 +3,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/. */ -// This file is loaded into the browser window scope. -/* eslint-env mozilla/browser-window */ - var PointerlockFsWarning = { _element: null, _origin: null, diff --git a/browser/base/content/browser-gestureSupport.js b/browser/base/content/browser-gestureSupport.js @@ -2,9 +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/. */ -// This file is loaded into the browser window scope. -/* eslint-env mozilla/browser-window */ - // Simple gestures support // // As per bug #412486, web content must not be allowed to receive any diff --git a/browser/base/content/browser-graphics-utils.js b/browser/base/content/browser-graphics-utils.js @@ -2,9 +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/. */ -// This file is loaded into the browser window scope. -/* eslint-env mozilla/browser-window */ - /** * Global browser interface with graphics utilities. */ diff --git a/browser/base/content/browser-main.js b/browser/base/content/browser-main.js @@ -3,8 +3,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/. */ -/* eslint-env mozilla/browser-window */ - // prettier-ignore // eslint-disable-next-line no-lone-blocks { diff --git a/browser/base/content/browser-menubar.js b/browser/base/content/browser-menubar.js @@ -3,8 +3,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/. */ -/* eslint-env mozilla/browser-window */ - document.addEventListener( "DOMContentLoaded", () => { diff --git a/browser/base/content/browser-pagestyle.js b/browser/base/content/browser-pagestyle.js @@ -3,8 +3,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/. */ -/* eslint-env mozilla/browser-window */ - var gPageStyleMenu = { _getStyleSheetInfo(browser) { let actor = diff --git a/browser/base/content/browser-places.js b/browser/base/content/browser-places.js @@ -2,9 +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/. */ -// This file is loaded into the browser window scope. -/* eslint-env mozilla/browser-window */ - XPCOMUtils.defineLazyPreferenceGetter( this, "NEWTAB_ENABLED", diff --git a/browser/base/content/browser-profiles.js b/browser/base/content/browser-profiles.js @@ -2,9 +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/. */ -// This file is loaded into the browser window scope. -/* eslint-env mozilla/browser-window */ - var gProfiles = { async init() { this.createNewProfile = this.createNewProfile.bind(this); diff --git a/browser/base/content/browser-safebrowsing.js b/browser/base/content/browser-safebrowsing.js @@ -2,9 +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/. */ -// This file is loaded into the browser window scope. -/* eslint-env mozilla/browser-window */ - var gSafeBrowsing = { setReportPhishingMenu() { // In order to detect whether or not we're at the phishing warning diff --git a/browser/base/content/browser-siteIdentity.js b/browser/base/content/browser-siteIdentity.js @@ -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/. */ -/* eslint-env mozilla/browser-window */ - ChromeUtils.defineESModuleGetters(this, { ExtensionUtils: "resource://gre/modules/ExtensionUtils.sys.mjs", }); diff --git a/browser/base/content/browser-sitePermissionPanel.js b/browser/base/content/browser-sitePermissionPanel.js @@ -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/. */ -/* eslint-env mozilla/browser-window */ - /** * Utility object to handle manipulations of the identity permission indicators * in the UI. diff --git a/browser/base/content/browser-siteProtections.js b/browser/base/content/browser-siteProtections.js @@ -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/. */ -/* eslint-env mozilla/browser-window */ - ChromeUtils.defineESModuleGetters(this, { ContentBlockingAllowList: "resource://gre/modules/ContentBlockingAllowList.sys.mjs", diff --git a/browser/base/content/browser-sync.js b/browser/base/content/browser-sync.js @@ -2,9 +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/. */ -// This file is loaded into the browser window scope. -/* eslint-env mozilla/browser-window */ - const { FX_MONITOR_OAUTH_CLIENT_ID, FX_RELAY_OAUTH_CLIENT_ID, diff --git a/browser/base/content/browser-thumbnails.js b/browser/base/content/browser-thumbnails.js @@ -2,9 +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/. */ -// This file is loaded into the browser window scope. -/* eslint-env mozilla/browser-window */ - /** * Keeps thumbnails of open web pages up-to-date. */ diff --git a/browser/base/content/browser-toolbarKeyNav.js b/browser/base/content/browser-toolbarKeyNav.js @@ -2,9 +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/. */ -// This file is loaded into the browser window scope. -/* eslint-env mozilla/browser-window */ - /** * Handle keyboard navigation for toolbars. * Having separate tab stops for every toolbar control results in an diff --git a/browser/base/content/browser-trustPanel.js b/browser/base/content/browser-trustPanel.js @@ -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/. */ -/* eslint-env mozilla/browser-window */ /* import-globals-from browser-siteProtections.js */ ChromeUtils.defineESModuleGetters(this, { diff --git a/browser/base/content/browser-unified-extensions.js b/browser/base/content/browser-unified-extensions.js @@ -3,9 +3,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/. */ -// This file is loaded into the browser window scope. -/* eslint-env mozilla/browser-window */ - ChromeUtils.defineESModuleGetters(this, { OriginControls: "resource://gre/modules/ExtensionPermissions.sys.mjs", }); diff --git a/browser/base/content/browser-webrtc.js b/browser/base/content/browser-webrtc.js @@ -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/. */ -/* eslint-env mozilla/browser-window */ - /** * Utility object to handle WebRTC shared tab warnings. */ diff --git a/browser/base/content/global-scripts.js b/browser/base/content/global-scripts.js @@ -3,8 +3,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/. */ -/* eslint-env mozilla/browser-window */ - // JS files which are needed by browser.xhtml but no other top level windows to // support MacOS specific features should be loaded directly from browser-main.js // rather than this file. diff --git a/browser/base/content/main-popupset.js b/browser/base/content/main-popupset.js @@ -3,8 +3,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/. */ -/* eslint-env mozilla/browser-window */ - document.addEventListener( "DOMContentLoaded", () => { diff --git a/browser/base/content/navigator-toolbox.js b/browser/base/content/navigator-toolbox.js @@ -3,8 +3,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/. */ -/* eslint-env mozilla/browser-window */ - document.addEventListener( "DOMContentLoaded", () => { diff --git a/browser/base/content/nonbrowser-mac.js b/browser/base/content/nonbrowser-mac.js @@ -3,8 +3,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/. */ -/* eslint-env mozilla/browser-window */ - var NonBrowserWindow = { delayedStartupTimeoutId: null, MAC_HIDDEN_WINDOW: "chrome://browser/content/hiddenWindowMac.xhtml",