Hi, all.

As announced in 
https://groups.google.com/a/mozilla.org/g/dev-platform/c/GDAs-WJiiu8 , 
ESMification for the Firefox and Thunderbird codebase is completed, and now 
it’s time to prepare for out-of-tree migration.

If you’re a developer of Firefox privileged extensions, Thunderbird privileged 
extensions, or if you’re using unsandboxed AutoConfig scripts, this email is 
for you.

Firefox and Thunderbird have been using JSM, the mozilla-specific JavaScript 
module system, and it has been available to privileged extensions and 
unsandboxed AutoConfig scripts, via Cu.import or ChromeUtils.import APIs and 
wrapper around them.

As of version 126, all internal JSMs are migrated to the standard ECMAScript 
module (ESM) system, using new APIs ChromeUtils.importESModule and wrappers 
around it.  The old APIs keep working by internally redirecting the call to the 
new APIs and corresponding ESMs.

The migration period is planned to be until Firefox 136, which will be released 
Mar 2025 <https://whattrainisitnow.com/calendar/>.  During the migration 
period, both the old APIs and new APIs keep working, and after the migration 
period, the support for the old APIs will be dropped. The next ESR, Firefox ESR 
128 is compatible both with old and new APIs, and the next-next ESR will be 
compatible only with ESMs.

Here’s the document that describes the affected cases and how to migrate each 
case:
https://docs.google.com/document/d/14FqYX749nJkCSL_GknCDZyQnuqkXNc9KoTuXSV3HtMg/edit?usp=sharing

Thank you for reading.
If you have questions, feel free to ask in the #esmification 
<https://chat.mozilla.org/#/room/%23esmification:mozilla.org> matrix room!

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CAD7325F-C61E-41F6-8203-37AEA2CA90D7%40gmail.com.

Reply via email to