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
parent ecaac10c8e
commit a7b55b400a
6 changed files with 10 additions and 8 deletions

View file

@ -59,7 +59,7 @@ FxAccountsClient.prototype = {
/* /*
* Return current time in milliseconds * 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. * that uses this client.
*/ */
now() { now() {

View file

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

View file

@ -532,12 +532,14 @@ For example, they leverage advanced customization options (bucket, content-signa
.. code-block:: js .. 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(); 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.ExtensionBlocklistRS._ensureInitialized();
BlocklistPrivate.PluginBlocklistRS._ensureInitialized(); BlocklistPrivate.PluginBlocklistRS._ensureInitialized();

View file

@ -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 don't know what other tabs are open, and when we do know, the list is just
stored in memory. 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 is the main interface the browser uses to get the list of tabs from other
devices. 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, As a result, only a shim is in the `services/sync/modules/engines/` directory,
while the actual logic is 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 - 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 whenever a change is made to a fields, the original value of the field is

View file

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

View file

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