Closed Bug 1834360 Opened 2 years ago Closed 2 years ago

Add support for ES modules in ChromeWorker

Categories

(Core :: DOM: Workers, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: standard8, Assigned: asuth)

References

(Blocks 3 open bugs)

Details

Attachments

(1 file)

Bug 1812591 added support for loading ES modules as workers, using new Worker(<url>, { type: "module" }).

However that option argument isn't currently available for ChromeWorker.

We will need this to complete the esm-ification work (bug 1308512), as we have various .jsm modules that are imported via importScripts but we can't use that method for ES modules. Hence we are not able to change those to ES modules (see the bugs that this bug blocks).

It may be that it is enough to add the option for the constructor, but there may be more work than that, as these will also need to be able to load system modules.

Assignee: nobody → bugmail
Status: NEW → ASSIGNED
Severity: -- → S3
Type: task → enhancement
Priority: -- → P3
Pushed by bugmail@asutherland.org: https://hg.mozilla.org/integration/autoland/rev/c3108a8a5f3f Add support for ES modules in ChromeWorker. r=dom-worker-reviewers,webidl,smaug
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
No longer blocks: 1824591
Blocks: 1835279
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: