diff --git a/index.html b/index.html index 692c53c60..1b67b1cac 100644 --- a/index.html +++ b/index.html @@ -338,7 +338,7 @@
Document
's metadata to
populate an installation process' UI.
Document
's
+
+ relevant settings object, or null
if unavailable.
+ appinstalled
at the
@@ -604,8 +621,8 @@
A developer specifies the navigation scope via the
- scope
member. In the case where the
- scope
member is missing or in error, the navigation
+ scope
member. In the case where the
+ scope
member is missing or in error, the navigation
scope is treated as unbounded (represented as the value
undefined
). In such a case, the manifest is applied to all
URLs the application context is navigated to (see related
@@ -1239,6 +1256,11 @@
start_url
member with manifest,
manifest URL, and document URL as arguments.
serviceworker
member with manifest,
+ manifest URL, and serviceworker as arguments.
+ display
member with manifest as the
@@ -2033,6 +2055,104 @@ 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 manifest manifest. This algorithm returns a
+ registration object registration, which can be
+ undefined
.
+
serviceworker
".
+ src
member of a service worker
+ with unprocessed registration and manifest URL.
+ undefined
, or if the result of
+ running is origin potentially trustworthy
+ with the origin of src is Not Trusted
,
+ issue a developer warning, abort these steps and return
+ undefined
.
+ src
, scope
, type
and
+ use_cache
. All properties initially set to
+ undefined
.
+ src
property to be
+ src.
+ scope
member of a service worker
+ passing unprocessed registration.
+ undefined
, issue a developer
+ warning, abort these steps and return undefined
.
+ scope
+ property to be scope.
+ type
member of a service worker
+ passing unprocessed registration.
+ undefined
, issue a developer
+ warning, abort these steps and return undefined
.
+ type
+ property to be type.
+ use_cache
member of a service worker
+ passing unprocessed registration.
+ undefined
, issue a developer
+ warning, abort these steps and return undefined
.
+ use_cache
+ property to be use cache.
+ /foo
scope, bypassing the user agent cache
+ when fetching the "sw.js"
source:
+ + "serviceworker": { + "src": "sw.js", + "scope": "/foo", + "use_cache": false + } ++
theme_color
member
@@ -2814,6 +2934,181 @@ + A serviceworker object represents a service worker + registration for the web application. +
+src
member
+
+ The src
member of a
+ serviceworker object 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 serviceworker object registration, and a URL manifest
+ URL, which is the URL from which the
+ manifest was fetched. This algorithm will return a
+ URL or undefined
.
+
src
" as the argument.
+ undefined
", issue a
+ developer warning that the type is unsupported.
+ undefined
.
+ undefined
.
+ scope
member
+
+ The scope
member of a
+ serviceworker object 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 serviceworker object registration, and a URL manifest
+ URL, which is the URL from which the
+ manifest was fetched. This algorithm will return a
+ URL or undefined
.
+
scope
" as the argument.
+ undefined
", issue a
+ developer warning that the type is unsupported and
+ return undefined
.
+ null
.
+ undefined
.
+ type
member
+
+ The type
member of a
+ serviceworker object is the service worker's
+ worker type.
+
+ The steps for processing the type
member of a
+ service worker are given by the following algorithm. The algorithm takes
+ a serviceworker object registration, and a URL manifest
+ URL, which is the URL from which the
+ manifest was fetched. This algorithm will return a
+ string.
+
type
" as the argument.
+ undefined
", issue a
+ developer warning that the type is unsupported and
+ return undefined
.
+ "classic"
.
+ undefined
.
+ use_cache
member
+
+ The use_cache
member of a
+ serviceworker object determines whether the user agent
+ cache should
+ be used when fetching the service worker.
+
+ The steps for processing the use_cache
member of a
+ service worker are given by the following algorithm. The algorithm takes
+ a serviceworker object registration, and a URL manifest
+ URL, which is the URL from which the
+ manifest was fetched. This algorithm will return a
+ boolean.
+
use_cache
" as the argument.
+ undefined
", issue a
+ developer warning that the type is unsupported and
+ return undefined
.
+ false
default-src
directives are defined in
[[!CSP3]].
+ + The + Is origin potentially trustworthy is defined in [[!SECURE-CONTEXTS]]. +
++ The Start Register + is defined in [[!SERVICE-WORKERS-1]]. +
++ The scope URL + is defined in [[!SERVICE-WORKERS-1]]. +