Convert devtools/server JSMs to ES Modules
Categories
(DevTools :: General, task)
Tracking
(firefox106 fixed)
Tracking | Status | |
---|---|---|
firefox106 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 1 open bug, Regressed 1 open bug)
Details
(Whiteboard: [esmification-timeline])
Attachments
(2 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
Bug 1789595 - [devtools] Migrate require to new devtools/server's ESM to ChromeUtils.importESModule.
48 bytes,
text/x-phabricator-request
|
Details | Review |
JSMs in devtools/server seems to be mostly internals of the server, so should be easy to migrate to ESM:
devtools/server/actors/targets/target-actor-registry.jsm
devtools/server/actors/watcher/SessionDataHelpers.jsm
devtools/server/actors/watcher/WatcherRegistry.jsm
devtools/server/actors/watcher/browsing-context-helpers.jsm
devtools/server/connectors/js-window-actor/DevToolsFrameChild.jsm
devtools/server/connectors/js-window-actor/DevToolsFrameParent.jsm
devtools/server/connectors/js-window-actor/DevToolsWorkerChild.jsm
devtools/server/connectors/js-window-actor/DevToolsWorkerParent.jsm
devtools/server/connectors/js-window-actor/WindowGlobalLogger.jsm
devtools/server/startup/content-process.jsm
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
•
|
||
Oh wait, some of these modules are loaded in the worker thread and are blocked by bug 1247687.
Actually, it may only be this one module:
devtools/server/actors/watcher/SessionDataHelpers.jsm
Assignee | ||
Comment 2•2 years ago
|
||
This is the result of:
$ ./mach esmify devtools/server/
Assignee | ||
Comment 3•2 years ago
|
||
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ec840ebd0d22 [devtools] Convert devtools/server JSM to ES Modules. r=nchevobbe https://hg.mozilla.org/integration/autoland/rev/35ccddb0757d [devtools] Migrate require to new devtools/server's ESM to ChromeUtils.importESModule. r=nchevobbe
Comment 5•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ec840ebd0d22
https://hg.mozilla.org/mozilla-central/rev/35ccddb0757d
Description
•