Implement background.preferred_environment
Categories
(WebExtensions :: General, enhancement, P5)
Tracking
(firefox136 fixed)
| Tracking | Status | |
|---|---|---|
| firefox136 | --- | fixed |
People
(Reporter: carlos-mozilla, Assigned: carlos-mozilla)
References
Details
(Keywords: dev-doc-complete, Whiteboard: [wecg])
Attachments
(1 file)
As discussed https://github.com/w3c/webextensions/issues/282#issuecomment-2323428037
background.preferred_environment allows webExtension authors to specify what the background environment they prefer. This allows specifying both a "service_worker" and "document" environment while using the "document" environment in browsers supporting it (Like Mozilla Firefox and Safari).
Ideally this is supported right from the start when Firefox adds support for service_worker.
This has already been implemented in WebKit and available since Safari 18.
See also: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background
Updated•1 year ago
|
Comment 2•1 year ago
|
||
Adding dependency on bug 1775618 as explained in https://phabricator.services.mozilla.com/D228538#7898187.
Updated•1 year ago
|
Comment 4•1 year ago
|
||
| bugherder | ||
Updated•1 year ago
|
Doc updates in
Description
•