Bug 1881890 - Part 3: Add TODO comment for JSM removal. r=mccr8 DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D202648
This commit is contained in:
Tooru Fujisawa 2024-02-27 05:53:05 +00:00
parent bcb56eca84
commit 61e25ea963
2 changed files with 12 additions and 0 deletions

View file

@ -544,6 +544,9 @@ partial namespace ChromeUtils {
* the same file will not cause the module to be re-evaluated, but * the same file will not cause the module to be re-evaluated, but
* the symbols in EXPORTED_SYMBOLS will be exported into the * the symbols in EXPORTED_SYMBOLS will be exported into the
* specified target object and the global object returned as above. * 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] [Throws]
object import(UTF8String aResourceURI, optional object aTargetObj); object import(UTF8String aResourceURI, optional object aTargetObj);

View file

@ -324,6 +324,9 @@ interface nsIXPCComponents_Utils : nsISupports
* pointing to the same file will not cause the module to be re-evaluated, * 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 * but the symbols in EXPORTED_SYMBOLS will be exported into the
* specified target object and the global object returned as above. * 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] [implicit_jscontext,optional_argc]
jsval import(in AUTF8String aResourceURI, [optional] in jsval targetObj); 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 * Returns true if the JSM is loaded into the system global previously via
* the import method above. Returns false otherwise. * 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); boolean isJSModuleLoaded(in AUTF8String aResourceURI);
@ -360,6 +366,9 @@ interface nsIXPCComponents_Utils : nsISupports
* imported then this method will do nothing. * imported then this method will do nothing.
* *
* @param resourceURI A resource:// URI string to unload the module from. * @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); void unload(in AUTF8String registryLocation);