Bug 1881890 - Part 2: Add TODO comment for JSM process/window actor removal. r=Standard8 DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D202647
This commit is contained in:
Tooru Fujisawa 2024-02-27 05:53:05 +00:00
parent 42b217f9eb
commit bcb56eca84
3 changed files with 8 additions and 0 deletions

View File

@ -74,6 +74,9 @@ dictionary ProcessActorSidedOptions {
* *
* If neither this nor `esModuleURI` is passed, the specified side cannot receive * If neither this nor `esModuleURI` is passed, the specified side cannot receive
* messages, but may send them using `sendAsyncMessage` or `sendQuery`. * messages, but may send them using `sendAsyncMessage` or `sendQuery`.
*
* TODO: Remove this once m-c, c-c, and out-of-tree code migrations finish
* (bug 1866732).
*/ */
ByteString moduleURI; ByteString moduleURI;

View File

@ -132,6 +132,9 @@ dictionary WindowActorSidedOptions {
* *
* If neither this nor `esModuleURI` is passed, the specified side cannot receive * If neither this nor `esModuleURI` is passed, the specified side cannot receive
* messages, but may send them using `sendAsyncMessage` or `sendQuery`. * messages, but may send them using `sendAsyncMessage` or `sendQuery`.
*
* TODO: Remove this once m-c, c-c, and out-of-tree code migrations finish
* (bug 1866732).
*/ */
ByteString moduleURI; ByteString moduleURI;

View File

@ -76,6 +76,8 @@ already_AddRefed<JSActor> JSActorManager::GetActor(JSContext* aCx,
if (side.mModuleURI || side.mESModuleURI) { if (side.mModuleURI || side.mESModuleURI) {
JS::Rooted<JSObject*> exports(aCx); JS::Rooted<JSObject*> exports(aCx);
if (side.mModuleURI) { if (side.mModuleURI) {
// TODO: Remove this once m-c, c-c, and out-of-tree code migrations finish
// (bug 1866732).
JS::Rooted<JSObject*> global(aCx); JS::Rooted<JSObject*> global(aCx);
aRv = loader->Import(aCx, side.mModuleURI.ref(), &global, &exports); aRv = loader->Import(aCx, side.mModuleURI.ref(), &global, &exports);
if (aRv.Failed()) { if (aRv.Failed()) {