commit 88916cf7fb084563e9df258bc8286ddeee1c2771 parent 7d0af8b0c5bb5444742b70df5852c8d148cf0695 Author: Gijs Kruitbosch <gijskruitbosch@gmail.com> Date: Tue, 30 Sep 2025 15:28:05 +0000 Bug 1967204 - remove superfluous eslint-env frame/process/page script annotations from the tree, r=frontend-codestyle-reviewers,mossop Differential Revision: https://phabricator.services.mozilla.com/D266834 Diffstat:
30 files changed, 0 insertions(+), 57 deletions(-)
diff --git a/browser/base/content/aboutRestartRequired.js b/browser/base/content/aboutRestartRequired.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/remote-page */ - var AboutRestartRequired = { /* Only do autofocus if we're the toplevel frame; otherwise we don't want to call attention to ourselves! The key part is diff --git a/browser/base/content/aboutTabCrashed.js b/browser/base/content/aboutTabCrashed.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/remote-page */ - var AboutTabCrashed = { /** * This can be set to true once this page receives a message from the diff --git a/browser/components/privatebrowsing/content/aboutPrivateBrowsing.js b/browser/components/privatebrowsing/content/aboutPrivateBrowsing.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/remote-page */ - /** * Determines whether a given value is a fluent id or plain text and adds it to an element * @param {Array<[HTMLElement, string]>} items An array of [element, value] where value is diff --git a/browser/components/profiles/content/delete-profile-card.mjs b/browser/components/profiles/content/delete-profile-card.mjs @@ -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/remote-page */ - import { MozLitElement } from "chrome://global/content/lit-utils.mjs"; import { html } from "chrome://global/content/vendor/lit.all.mjs"; diff --git a/browser/components/profiles/content/edit-profile-card.mjs b/browser/components/profiles/content/edit-profile-card.mjs @@ -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/remote-page */ - import { MozLitElement } from "chrome://global/content/lit-utils.mjs"; import { html, ifDefined } from "chrome://global/content/vendor/lit.all.mjs"; diff --git a/browser/components/profiles/content/new-profile-card.mjs b/browser/components/profiles/content/new-profile-card.mjs @@ -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/remote-page */ - import { html } from "chrome://global/content/vendor/lit.all.mjs"; import { EditProfileCard } from "chrome://browser/content/profiles/edit-profile-card.mjs"; // eslint-disable-next-line import/no-unassigned-import diff --git a/browser/components/protections/content/lockwise-card.mjs b/browser/components/protections/content/lockwise-card.mjs @@ -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/remote-page */ - const HOW_IT_WORKS_URL_PREF = RPMGetFormatURLPref( "browser.contentblocking.report.lockwise.how_it_works.url" ); diff --git a/browser/components/protections/content/monitor-card.mjs b/browser/components/protections/content/monitor-card.mjs @@ -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/remote-page */ - const MONITOR_URL = RPMGetStringPref( "browser.contentblocking.report.monitor.url", "" diff --git a/browser/components/protections/content/protections.mjs b/browser/components/protections/content/protections.mjs @@ -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/remote-page */ - import LockwiseCard from "./lockwise-card.mjs"; import MonitorCard from "./monitor-card.mjs"; import ProxyCard from "./proxy-card.mjs"; diff --git a/browser/components/protections/content/proxy-card.mjs b/browser/components/protections/content/proxy-card.mjs @@ -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/remote-page */ - const PROXY_EXTENSION_URL = RPMGetStringPref( "browser.contentblocking.report.proxy_extension.url", "" diff --git a/browser/components/protections/content/vpn-card.mjs b/browser/components/protections/content/vpn-card.mjs @@ -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/remote-page */ - export default class VPNCard { constructor(doc) { this.doc = doc; diff --git a/browser/extensions/newtab/content-src/lib/init-store.mjs b/browser/extensions/newtab/content-src/lib/init-store.mjs @@ -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/remote-page */ - import { actionCreators as ac, actionTypes as at, diff --git a/browser/extensions/newtab/data/content/activity-stream.bundle.js b/browser/extensions/newtab/data/content/activity-stream.bundle.js @@ -16956,8 +16956,6 @@ const external_Redux_namespaceObject = Redux; * 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/remote-page */ - // We disable import checking here as redux is installed via the npm packages // at the newtab level, rather than in the top-level package.json. diff --git a/browser/extensions/webcompat/about-compat/aboutPageProcessScript.js b/browser/extensions/webcompat/about-compat/aboutPageProcessScript.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/process-script */ - "use strict"; // Note: This script is used only when a static registration for our diff --git a/browser/tools/mozscreenshots/mozscreenshots/extension/configurations/PermissionPrompts.sys.mjs b/browser/tools/mozscreenshots/mozscreenshots/extension/configurations/PermissionPrompts.sys.mjs @@ -160,7 +160,6 @@ async function clickOn(selector, beforeContentFn) { ); await SpecialPowers.spawn(lastTab.linkedBrowser, [selector], arg => { - /* eslint-env mozilla/chrome-script */ let element = content.document.querySelector(arg); return EventUtils.synthesizeClick(element); }); diff --git a/devtools/server/startup/content-process-script.js b/devtools/server/startup/content-process-script.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/process-script */ - "use strict"; /** diff --git a/devtools/server/startup/content-process.js b/devtools/server/startup/content-process.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/process-script */ - "use strict"; /* diff --git a/devtools/server/startup/frame.js b/devtools/server/startup/frame.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/frame-script */ - "use strict"; /* global addEventListener */ diff --git a/mobile/shared/chrome/geckoview/SessionStateAggregator.js b/mobile/shared/chrome/geckoview/SessionStateAggregator.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/frame-script */ - "use strict"; const { GeckoViewChildModule } = ChromeUtils.importESModule( diff --git a/toolkit/components/certviewer/content/certviewer.mjs b/toolkit/components/certviewer/content/certviewer.mjs @@ -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/remote-page */ - import { normalizeToKebabCase } from "./components/utils.mjs"; import { parse, diff --git a/toolkit/components/certviewer/content/components/about-certificate-items.mjs b/toolkit/components/certviewer/content/components/about-certificate-items.mjs @@ -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/remote-page */ - import { ListItem } from "./list-item.mjs"; export class AboutCertificateItems extends HTMLElement { diff --git a/toolkit/components/certviewer/content/components/about-certificate-section.mjs b/toolkit/components/certviewer/content/components/about-certificate-section.mjs @@ -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/remote-page */ - import { InfoGroupContainer } from "./info-group-container.mjs"; import { CertificateTabsSection } from "./certificate-tabs-section.mjs"; diff --git a/toolkit/components/extensions/ext-browser-content.js b/toolkit/components/extensions/ext-browser-content.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/frame-script */ - "use strict"; ChromeUtils.defineESModuleGetters(this, { diff --git a/toolkit/components/extensions/extensionProcessScriptLoader.js b/toolkit/components/extensions/extensionProcessScriptLoader.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/process-script */ - "use strict"; ChromeUtils.importESModule( diff --git a/toolkit/components/gfx/content/gfxFrameScript.js b/toolkit/components/gfx/content/gfxFrameScript.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/frame-script */ - const gfxFrameScript = { domUtils: null, diff --git a/toolkit/components/httpsonlyerror/content/errorpage.js b/toolkit/components/httpsonlyerror/content/errorpage.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/remote-page */ - "use strict"; const searchParams = new URLSearchParams(document.documentURI.split("?")[1]); diff --git a/toolkit/content/aboutNetError.mjs b/toolkit/content/aboutNetError.mjs @@ -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/remote-page */ /* eslint-disable import/no-unassigned-import */ import { NetErrorCard } from "chrome://global/content/net-error-card.mjs"; diff --git a/toolkit/content/aboutNetErrorHelpers.mjs b/toolkit/content/aboutNetErrorHelpers.mjs @@ -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/remote-page */ - import { parse, pemToDER, diff --git a/toolkit/content/net-error-card.mjs b/toolkit/content/net-error-card.mjs @@ -3,7 +3,6 @@ * You can obtain one at http://mozilla.org/MPL/2.0/. */ /* eslint-disable import/no-unassigned-import */ -/* eslint-env mozilla/remote-page */ import { getCSSClass, diff --git a/toolkit/content/process-content.js b/toolkit/content/process-content.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/process-script */ - "use strict"; // Creates a new PageListener for this process. This will listen for page loads