Support a "service_worker" manifest property to register a Service Worker at install time



Core Graveyard
DOM: Apps
3 years ago
6 months ago


(Reporter: benfrancis, Unassigned, Mentored)


Firefox Tracking Flags

(Not tracked)




3 years ago
As a developer I'd like to specify a Service Worker that should be registered at install time in the app manifest, so that it can be executed when my app is installed (e.g. to fetch the resources of my app and put in them in a cache in time for the app being launched for the first time).

Example format:

  "name": "My App",
  "service_worker": {
    "src": "/my-app/sw.js",
    "options": {"scope": "/my-app/"}

Installing the app would carry out an action equivalent to:

navigator.serviceWorker.register('/my-app/sw.js', {scope: '/my-app/'});

Un-installing the app may also un-register the Service Worker.
Mentor: nsm.nikhil
Depends on: 1059784

Comment 1

2 years ago
Any ETA on this? Isn't this related to Bug 1212648?


6 months ago
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.