Closed Bug 1789981 Opened 2 years ago Closed 24 days ago

Migrate devtools/server/actors/watcher/SessionDataHelpers.jsm to ESM

Categories

(DevTools :: Framework, task)

task

Tracking

(firefox126 fixed)

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

(Whiteboard: [esmification-timeline])

Attachments

(1 file)

This is one of the rare (only one?) JSM loaded from a worker thread in DevTools.
We have to wait for bug 1247687 before being able to convert this JSM to ESM.

This also block removing support for loading jsm as commonjs in the devtools module loader.
Once we are able to migrate it to ESM, we can move from using require to ChromeUtils.import* method and remove a few code in the loader:
https://searchfox.org/mozilla-central/rev/a26af613a476fafe6c3eba05a81bef63dff3c9f1/devtools/shared/loader/base-loader.js#343-349
(and a few dependencies of this code)

Note that there is also this JSM which is a dependency:
https://searchfox.org/mozilla-central/source/devtools/shared/validate-breakpoint.jsm

Depends on: 1812591
Depends on: 1834360

Changing to only be under the devtools esm-ification bug to clarify the dependency tree.

No longer blocks: esm-ification
Whiteboard: [esmification-timeline]
Depends on: 1881564
Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4eec27066227
[devtools] Convert last DevTools JSM to ESM. r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 24 days ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: