Closed Bug 1824613 Opened 2 years ago Closed 2 years ago

Convert toolkit/mozapps/extensions to ES modules

Categories

(Toolkit :: Add-ons Manager, task, P3)

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

(Whiteboard: [esmification-timeline])

Attachments

(3 files)

As part of the ongoing work, we should convert toolkit/mozapps/extensions to ES modules.

I think there's no workers involved here, so there shouldn't be any blockers. There is a guide for the transition here.

Severity: -- → N/A
Priority: -- → P3

Hey! I would like to work on this. Can I go ahead?

Despite my comment 0, I think this needs to be worked on by someone familiar with the add-on manager.

I have recently realised that the modules here are unloaded in tests via Cu.unload and this is not supported in ES modules.

Hence alternatives need figuring out and the developers who are familiar with the code would be best to do that.

Alright.

Also renames to avoid conflicts with AddonManager.jsm once that is converted.

Assignee: nobody → standard8
Status: NEW → ASSIGNED

Try push: https://treeherder.mozilla.org/jobs?repo=try&revision=da80f866a1afd98bff0c3426cec41d234b77236b

I've split the remaining files out to bug 1836480 and bug 1836482 as they need extra work/thinking about.

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1f3e15de9c08 Convert addonManager.js to an ES module. r=extension-reviewers,robwu https://hg.mozilla.org/integration/autoland/rev/3a9f92ff530f Convert most of toolkit/mozapps/extensions/ to ES modules. r=extension-reviewers,robwu https://hg.mozilla.org/integration/autoland/rev/73920a1d9785 Convert consumers of toolkit/mozapps/extensions/ to import ES modules directly. r=extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,sync-reviewers,sgalich,bytesized,robwu,skhamis
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: