From 8923ba484dc5aebc8cf4f8327bf3f964fc73965f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
This specification defines a JSON-based manifest file that provides
@@ -222,11 +222,6 @@
"orientation": "landscape",
"theme_color": "aliceblue",
"background_color": "red",
- "serviceworker":
- "src": "sw.js",
- "scope": "/racer/",
- "update_via_cache": "none"
- },
"screenshots": [{
"src": "screenshots/in-game-1x.jpg",
"sizes": "640x480",
@@ -386,12 +381,6 @@
undefined
, the user agent MAY run the steps for
- registering a manifest's service worker with
- |manifest|.{{WebAppManifest/serviceworker}}. If those steps return
- failure, abort these steps.
-
result of running processing the
related_applications
member given manifest["related_applications"].
serviceworker
member given
- manifest["serviceworker"], manifest URL,
- and serviceworker.
- shortcuts
member given
manifest URL, and "shortcuts"
.
@@ -1622,7 +1606,6 @@
USVString theme_color;
USVString background_color;
USVString scope;
- ServiceWorkerRegistrationObject serviceworker;
sequence<ExternalApplicationResource> related_applications;
boolean prefer_related_applications = "false";
sequence<ShortcutItem> shortcuts;
@@ -2065,115 +2048,6 @@
serviceworker
member
- - The serviceworker member describes a service worker as - defined in [[SERVICE-WORKERS-1]]. -
-- The serviceworker member represents an intented service - worker registration in form of a registration object -
-- Other service worker registrations can be done, for instance by a - script; if these have different scopes they will be considered - separate registrations. If they have the same scope and script URL, - they coalesce. If they have different script URLs, last one wins. -
-
- The steps for processing the serviceworker
- member are given by the following algorithm. The algorithm
- takes a ServiceWorkerRegistrationObject
- registration. This algorithm returns a
- ServiceWorkerRegistrationObject registration, which
- can be undefined
.
-
undefined
, return
- undefined
.
- src
member of a service worker
- given registration["src"] and manifest URL.
- Not
- Trusted
, issue a developer warning, abort these steps
- and return undefined
.
- scope
member of a service worker
- given registration["scope"].
- /foo
scope, bypassing the user agent
- cache when fetching the "sw.js"
source:
- - "serviceworker": { - "src": "sw.js", - "scope": "/foo", - "update_via_cache": "none" - } --
- The steps for registering a manifest's service worker are - given by the following algorithm, which takes a - {{ServiceWorkerRegistrationObject}} registration and - returns success or failure. -
-- The steps for converting a service worker registration to an - options dictionary are given by the following algorithm. The - algorithm takes a {{ServiceWorkerRegistrationObject}} - registration, and returns a {{RegistrationOptions}} - dictionary which is suitable to pass to - {{ServiceWorkerContainer}}.{{ServiceWorkerContainer/register()}}. -
-theme_color
member
@@ -3223,101 +3097,6 @@ - A ServiceWorkerRegistrationObject dictionary represents a - service worker registration for the web application. -
-- dictionary ServiceWorkerRegistrationObject { - required USVString src; - USVString scope; - WorkerType type = "classic"; - ServiceWorkerUpdateViaCache update_via_cache = "imports"; - }; --
src
member
- - The src member of a ServiceWorkerRegistrationObject - dictionary is a URL representing a service worker. -
-
- The steps for processing the src
member of a
- service worker are given by the following algorithm. The
- algorithm takes a USVString source URL, and a
- URL manifest URL, which is the URL from
- which the manifest was fetched. This algorithm will return
- a URL or undefined
.
-
- The scope member of a ServiceWorkerRegistrationObject - dictionary is the service worker's associated scope URL. -
-
- The steps for processing the scope
member of a
- service worker are given by the following algorithm. The
- algorithm takes a USVString scope URL, and a
- URL manifest URL, which is the URL from
- which the manifest was fetched. This algorithm will return
- a URL or undefined
.
-
undefined
, return
- undefined
- type
member
- - The type member of a - ServiceWorkerRegistrationObject dictionary is the service - worker's {{WorkerType}}. The possible values are those of the - {{WorkerType}} enum defined in [[HTML]]. -
-update_via_cache
member
- - The update_via_cache member of a - ServiceWorkerRegistrationObject dictionary determines the - update via - cache mode for the service worker. The possible values are those - of the {{ServiceWorkerUpdateViaCache}} enum defined in - [[SERVICE-WORKERS-1]]. -
-