Bug 1884623 - Update more jsm references in production code and docs in services/. r=sync-reviewers,markh

Differential Revision: https://phabricator.services.mozilla.com/D204188
This commit is contained in:
Mark Banner 2024-03-12 08:55:42 +00:00
Родитель ecaac10c8e
Коммит a7b55b400a
6 изменённых файлов: 10 добавлений и 8 удалений

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

@ -59,7 +59,7 @@ FxAccountsClient.prototype = {
/*
* Return current time in milliseconds
*
* Not used by this module, but made available to the FxAccounts.jsm
* Not used by this module, but made available to the FxAccounts.sys.mjs
* that uses this client.
*/
now() {

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

@ -431,7 +431,7 @@ FxAccountsWebChannelHelpers.prototype = {
// A sync-specific hack - we want to ensure sync has been initialized
// before we set the signed-in user.
// XXX - probably not true any more, especially now we have observerPreloads
// in FxAccounts.jsm?
// in FxAccounts.sys.mjs?
let xps =
this._weaveXPCOM ||
Cc["@mozilla.org/weave/service;1"].getService(Ci.nsISupports)

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

@ -532,12 +532,14 @@ For example, they leverage advanced customization options (bucket, content-signa
.. code-block:: js
const {RemoteSecuritySettings} = ChromeUtils.import("resource://gre/modules/psm/RemoteSecuritySettings.jsm");
const {RemoteSecuritySettings} =
ChromeUtils.importESModule("resource://gre/modules/psm/RemoteSecuritySettings.sys.mjs");
RemoteSecuritySettings.init();
const {BlocklistPrivate} = ChromeUtils.import("resource://gre/modules/Blocklist.jsm");
const {BlocklistPrivate} =
ChromeUtils.importESModule("resource://gre/modules/Blocklist.sys.mjs");
BlocklistPrivate.ExtensionBlocklistRS._ensureInitialized();
BlocklistPrivate.PluginBlocklistRS._ensureInitialized();

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

@ -80,7 +80,7 @@ are open on other devices. There's no database - if we haven't synced yet we
don't know what other tabs are open, and when we do know, the list is just
stored in memory.
The `SyncedTabs module <https://searchfox.org/mozilla-central/source/services/sync/modules/SyncedTabs.jsm>`_
The `SyncedTabs module <https://searchfox.org/mozilla-central/source/services/sync/modules/SyncedTabs.sys.mjs>`_
is the main interface the browser uses to get the list of tabs from other
devices.
@ -111,7 +111,7 @@ treat them as a single engine in practice.
As a result, only a shim is in the `services/sync/modules/engines/` directory,
while the actual logic is
`next to the storage implementation <https://searchfox.org/mozilla-central/source/toolkit/components/formautofill/FormAutofillSync.jsm>`_.
`next to the storage implementation <https://searchfox.org/mozilla-central/source/toolkit/components/formautofill/FormAutofillSync.sys.mjs>`_.
This engine has a unique twist on the "mirror" concept described above -
whenever a change is made to a fields, the original value of the field is

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

@ -145,7 +145,7 @@ class InterruptedError extends Error {
/**
* Adapts a `Log.sys.mjs` logger to a `mozIServicesLogSink`. This class is copied
* from `SyncedBookmarksMirror.jsm`.
* from `SyncedBookmarksMirror.sys.mjs`.
*/
export class LogAdapter {
constructor(log) {

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

@ -446,7 +446,7 @@ SyncAuthManager.prototype = {
// A hawkclient error.
} else if (err.code && err.code === 401) {
err = new AuthenticationError(err, "hawkclient");
// An FxAccounts.jsm error.
// An FxAccounts.sys.mjs error.
} else if (err.message == fxAccountsCommon.ERROR_AUTH_ERROR) {
err = new AuthenticationError(err, "fxaccounts");
}