зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1780695 - Part 1: Remove Services.jsm. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D150914
This commit is contained in:
Родитель
960ab84fdc
Коммит
f2426922f2
|
@ -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)$/, ""));
|
||||
|
|
Загрузка…
Ссылка в новой задаче