Closed Bug 1776870 Opened 3 years ago Closed 3 years ago

Integrate the automated rewrite script into mach

Categories

(Core :: XPConnect, task)

task

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(2 files)

No description provided.
Attachment #9283261 - Attachment description: WIP: Bug 1776870 - Integrate esmify script into mach. → Bug 1776870 - Integrate esmify script into mach. r=yulia
Attachment #9283261 - Attachment description: Bug 1776870 - Integrate esmify script into mach. r=yulia → WIP: Bug 1776870 - Integrate esmify script into mach. r=yulia!
Attachment #9283261 - Attachment description: WIP: Bug 1776870 - Integrate esmify script into mach. r=yulia! → Bug 1776870 - Integrate esmify script into mach. r=yulia!

Would it be feasible to warn on any new usage of ChromeUtils.import and suggest using ES6 modules instead, or is it too early?

(In reply to Marco Castelluccio [:marco] from comment #3)

Would it be feasible to warn on any new usage of ChromeUtils.import and suggest using ES6 modules instead, or is it too early?

IMO it's too early.
but yeah, once almost all modules are ESMified, we can add that warning.

The map.json in https://phabricator.services.mozilla.com/D150494 is verified with this command.
it extracts all chrome:// and resource:// mappings manually and checks each of them.
the code is too hacky, so I'm not sure if it worth landing.

Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/6779169ea4a4 Integrate esmify script into mach. r=yulia,firefox-static-analysis-reviewers,andi
See Also: → 1779047
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: