From 61e25ea96368df2cd333c72a24c4ec88c45c2e39 Mon Sep 17 00:00:00 2001 From: Tooru Fujisawa Date: Tue, 27 Feb 2024 05:53:05 +0000 Subject: [PATCH] Bug 1881890 - Part 3: Add TODO comment for JSM removal. r=mccr8 DONTBUILD Differential Revision: https://phabricator.services.mozilla.com/D202648 --- dom/chrome-webidl/ChromeUtils.webidl | 3 +++ js/xpconnect/idl/xpccomponents.idl | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/dom/chrome-webidl/ChromeUtils.webidl b/dom/chrome-webidl/ChromeUtils.webidl index dcb44a1ba911..ec685b83660d 100644 --- a/dom/chrome-webidl/ChromeUtils.webidl +++ b/dom/chrome-webidl/ChromeUtils.webidl @@ -544,6 +544,9 @@ partial namespace ChromeUtils { * the same file will not cause the module to be re-evaluated, but * the symbols in EXPORTED_SYMBOLS will be exported into the * specified target object and the global object returned as above. + * + * TODO: Remove this once m-c, c-c, and out-of-tree code migrations finish + * (bug 1881888). */ [Throws] object import(UTF8String aResourceURI, optional object aTargetObj); diff --git a/js/xpconnect/idl/xpccomponents.idl b/js/xpconnect/idl/xpccomponents.idl index 02352286634b..1d4155ed7495 100644 --- a/js/xpconnect/idl/xpccomponents.idl +++ b/js/xpconnect/idl/xpccomponents.idl @@ -324,6 +324,9 @@ interface nsIXPCComponents_Utils : nsISupports * pointing to the same file will not cause the module to be re-evaluated, * but the symbols in EXPORTED_SYMBOLS will be exported into the * specified target object and the global object returned as above. + * + * TODO: Remove this once m-c, c-c, and out-of-tree code migrations finish + * (bug 1776175, bug 1881888). */ [implicit_jscontext,optional_argc] jsval import(in AUTF8String aResourceURI, [optional] in jsval targetObj); @@ -344,6 +347,9 @@ interface nsIXPCComponents_Utils : nsISupports /** * Returns true if the JSM is loaded into the system global previously via * the import method above. Returns false otherwise. + * + * TODO: Remove this once m-c, c-c, and out-of-tree code migrations finish + * (bug 1776175, bug 1881888). */ boolean isJSModuleLoaded(in AUTF8String aResourceURI); @@ -360,6 +366,9 @@ interface nsIXPCComponents_Utils : nsISupports * imported then this method will do nothing. * * @param resourceURI A resource:// URI string to unload the module from. + * + * TODO: Remove this once m-c, c-c, and out-of-tree code migrations finish + * (bug 1776175, bug 1881888). */ void unload(in AUTF8String registryLocation);