Closed Bug 1779689 Opened 2 years ago Closed 2 years ago

Support ES module in background service worker

Categories

(WebExtensions :: Untriaged, enhancement)

Firefox 104
enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1247687

People

(Reporter: hi, Unassigned)

Details

Steps to reproduce:

Load web extension with manifest v3 and the following background configuration:

"background": {
"service_worker": "background.js",
"type": "module"
}

Actual results:

Firefox reports:

Reading manifest: Error processing background: Value must either: contain the required "page" property, contain the required "scripts" property, or not contain an unexpected "type" property

Expected results:

Firefox should support the "type": "module" instruction.

https://developer.chrome.com/docs/extensions/mv3/service_workers/

The Bugbug bot thinks this bug should belong to the 'WebExtensions::Untriaged' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Product: Firefox → WebExtensions

This will be handled in Bug 1247687

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.