Bug 1780695 - Part 1: Remove Services.jsm. r=kmag

Differential Revision: https://phabricator.services.mozilla.com/D150914
This commit is contained in:
Tooru Fujisawa 2023-07-10 07:07:19 +00:00
Родитель 960ab84fdc
Коммит f2426922f2
4 изменённых файлов: 0 добавлений и 14 удалений

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

@ -1,11 +0,0 @@
/* 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/. */
const Services = globalThis.Services;
var EXPORTED_SYMBOLS = ["Services"];
console.warn(
"Services.jsm will be removed by Firefox 117 or 118. Use the Services global variable instead"
);

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

@ -204,7 +204,6 @@ EXTRA_JS_MODULES += [
"ResponsivenessMonitor.sys.mjs",
"SelectionUtils.sys.mjs",
"ServiceRequest.sys.mjs",
"Services.jsm",
"ShortcutUtils.sys.mjs",
"Sqlite.sys.mjs",
"SubDialog.sys.mjs",

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

@ -26,7 +26,6 @@ eslint:
- 'toolkit/content/contentAreaUtils.js'
- 'toolkit/content/editMenuOverlay.js'
- 'toolkit/content/globalOverlay.js'
- 'toolkit/modules/Services.jsm'
type: external
payload: eslint:lint
setup: eslint:setup

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

@ -16,7 +16,6 @@ function isString(node) {
function isEagerModule(resourceURI) {
return [
"resource://gre/modules/Services",
"resource://gre/modules/XPCOMUtils",
"resource://gre/modules/AppConstants",
].includes(resourceURI.replace(/(\.jsm|\.jsm\.js|\.js|\.sys\.mjs)$/, ""));