Closed Bug 1789595 Opened 2 years ago Closed 2 years ago

Convert devtools/server JSMs to ES Modules

Categories

(DevTools :: General, task)

task

Tracking

(firefox106 fixed)

RESOLVED FIXED
106 Branch
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)

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: nobody → poirot.alex
Whiteboard: [esmification-timeline]

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

This is the result of:
$ ./mach esmify devtools/server/

Blocks: 1789981
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
Regressions: 1790054
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: