Open Bug 1775574 Opened 2 years ago Updated 1 years ago

Support type: "module" (background service worker as a ES module)

Categories

(WebExtensions :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

REOPENED

People

(Reporter: robwu, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Whiteboard: [addons-jira][wecg])

Chrome extensions can already specify type: "module" in the background declaration along with their background Service worker: https://developer.chrome.com/docs/extensions/mv3/service_workers/#manifest

Once worker modules (bug 1247687) are supported (a prerequisite to supporting module service workers (bug 1360870)), we should look into supporting modules for extension service workers.

(and if we figure out the desired behavior of extension APIs in a module context, then it may also be feasible to support modules in content scripts - bug 1451545)

Priority: -- → P3
Severity: -- → N/A
Whiteboard: [addons-jira] → [addons-jira][wecg]
Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1360870
Resolution: --- → DUPLICATE

Sorry, thought this was the same as the main service workers bug

Status: RESOLVED → REOPENED
No longer duplicate of bug: 1360870
Resolution: DUPLICATE → ---
You need to log in before you can comment on or make changes to this bug.