Open Bug 1748676 Opened 2 years ago Updated 2 months ago

Consider supporting background service workers on builds where the extension child process is disabled

Categories

(WebExtensions :: General, task, P3)

task
Points:
3

Tracking

(Not tracked)

People

(Reporter: rpl, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [addons-jira])

In Gecko builds for GeckoView the extension child process is currently disabled (but with web content running in web child processes).

The service workers are currently not expected to be executed in the parent process, the same used to be true for SharedWorkers, but in https://hg.mozilla.org/mozilla-central/rev/8381d47bee21 we have allowed SharedWorkers registered by the extensions to run in the parent process in build where the extension child process is currently disabled and covered it with a test case.

As part of this bug we should consider if as part of the GeckoView transition from MV2 and MV3:

  • we intent to support extensions ServiceWorkers running in the parent process (and in that case cover it with an explicit test case as we did for the SharedWorkers)
  • or aim to enable the extension child process on GeckoView first (along with enabling event pages in MV2 extensions and ensuring that the extensions subset supported on Fenix will be using an event page)

Along with GeckoView, Thunderbird is also based on a Gecko build where the extension child process is disabled and so we should also consider its possible transition paths and coordinate with Thunderbird developers on this topic.

Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.