Closed Bug 1930334 Opened 1 year ago Closed 1 year ago

Implement background.preferred_environment

Categories

(WebExtensions :: General, enhancement, P5)

enhancement

Tracking

(firefox136 fixed)

RESOLVED FIXED
136 Branch
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

Assignee: nobody → carlos
Status: NEW → ASSIGNED
Whiteboard: [wecg]
Severity: -- → N/A
Depends on: 1775618
Priority: -- → P5
Blocks: 1775618
No longer depends on: 1775618
Pushed by rob@robwu.nl: https://hg.mozilla.org/integration/autoland/rev/c4719e562ab3 Implements basic support of background.preferred_environment. r=robwu
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Keywords: dev-doc-needed
Regressions: 1953937
Regressions: 1954637
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: