From 6a043ab687f5b830d081907d5c4922958d8cb735 Mon Sep 17 00:00:00 2001 From: Tooru Fujisawa Date: Mon, 11 Jul 2022 15:09:16 +0000 Subject: [PATCH] Bug 1777486 - Part 8: Update testcase comments that mentions XPCOMUtils. r=kmag Differential Revision: https://phabricator.services.mozilla.com/D151220 --- js/xpconnect/tests/unit/test_lazyproxy.js | 2 +- js/xpconnect/tests/unit/test_xpcomutils.js | 2 +- startupcache/StartupCacheUtils.h | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/xpconnect/tests/unit/test_lazyproxy.js b/js/xpconnect/tests/unit/test_lazyproxy.js index 72a89a867e51..a36fca45ad11 100644 --- a/js/xpconnect/tests/unit/test_lazyproxy.js +++ b/js/xpconnect/tests/unit/test_lazyproxy.js @@ -2,7 +2,7 @@ * http://creativecommons.org/publicdomain/zero/1.0/ */ /** - * This file tests the method defineLazyProxy from XPCOMUtils.jsm. + * This file tests the method defineLazyProxy from XPCOMUtils.sys.mjs. */ const {XPCOMUtils} = ChromeUtils.importESModule("resource://gre/modules/XPCOMUtils.sys.mjs"); diff --git a/js/xpconnect/tests/unit/test_xpcomutils.js b/js/xpconnect/tests/unit/test_xpcomutils.js index b447e52ff24f..79878562485e 100644 --- a/js/xpconnect/tests/unit/test_xpcomutils.js +++ b/js/xpconnect/tests/unit/test_xpcomutils.js @@ -5,7 +5,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /** - * This file tests the methods on XPCOMUtils.jsm. + * This file tests the methods on XPCOMUtils.sys.mjs. * Also on ComponentUtils.jsm. Which is deprecated. */ diff --git a/startupcache/StartupCacheUtils.h b/startupcache/StartupCacheUtils.h index e92f1542c8f2..0a8499d18253 100644 --- a/startupcache/StartupCacheUtils.h +++ b/startupcache/StartupCacheUtils.h @@ -53,10 +53,10 @@ nsresult ResolveURI(nsIURI* in, nsIURI** out); // passed in. // // For example, in the js loader (loaderType = "jsloader"): -// resource://gre/modules/XPCOMUtils.jsm or -// file://$GRE_DIR/modules/XPCOMUtils.jsm or -// jar:file://$GRE_DIR/omni.jar!/modules/XPCOMUtils.jsm becomes -// jsloader/resource/gre/modules/XPCOMUtils.jsm +// resource://gre/modules/XPCOMUtils.sys.mjs or +// file://$GRE_DIR/modules/XPCOMUtils.sys.mjs or +// jar:file://$GRE_DIR/omni.jar!/modules/XPCOMUtils.sys.mjs becomes +// jsloader/resource/gre/modules/XPCOMUtils.sys.mjs // file://$PROFILE_DIR/extensions/{uuid}/components/component.js becomes // jsloader/$PROFILE_DIR/extensions/%7Buuid%7D/components/component.js // jar:file://$PROFILE_DIR/extensions/some.xpi!/components/component.js becomes