diff --git a/spec/service_worker/index.bs b/spec/service_worker/index.bs index 21c48790..2ba24199 100644 --- a/spec/service_worker/index.bs +++ b/spec/service_worker/index.bs @@ -61,8 +61,6 @@ spec: html; type: dfn text: browsing context text: discard a document text: document base url - text: effective script origin - text: entry settings object text: environment settings object text: event handler text: event handler event type @@ -212,7 +210,7 @@ spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/ text: origin; for: resource; url: origin-2 text: browsing context is discarded urlPrefix: infrastructure.html - text: read only array; url: dfn-read-only-array + text: inserted into a document; url: insert-an-element-into-a-document text: StructuredCloneWithTransfer urlPrefix: interaction.html text: has focus steps @@ -784,9 +782,9 @@ spec: webidl; urlPrefix: https://heycam.github.io/webidl/
TypeError
.Link
header.scope
" target attribute of the Link
header, or null if no such attribute is present.scope
" target attribute of the Link
header is present, set scopeURL to the result of parsing the "scope
" target attribute with scriptURL.workertype
" target attribute of the Link
header, or "classic
" if no such attribute is present.When a serviceworker link's <{link}> element is inserted into a document, a serviceworker link is created on a <{link}> element that is already in a Document, or the <{link/href}> or <{link/scope}> attributes of the <{link}> element of a serviceworker link is changed, the user agent should run these steps:
+When a serviceworker link's <{link}> element is inserted into a document, a serviceworker link is created on a <{link}> element that is already in a document tree, or the <{link/href}> or <{link/scope}> attributes of the <{link}> element of a serviceworker link is changed, the user agent should run these steps:
error
at the <{link}> element, and abort these steps.classic
" if the <{link/workertype}> attribute is omitted.error
at the <{link}> element, and abort these steps.TypeError
and abort these steps.http
" and "https
", reject promise with a TypeError
and abort these steps.%2f
" or ASCII case-insensitive "%5c
", reject promise with a TypeError
and abort these steps../
" with scriptURL.
+ ./
" with scriptURL.
The scope url for the registration is set to the location of the service worker script by default.
TypeError
and abort these steps.http
" and "https
", reject promise with a TypeError
and abort these steps.%2f
" or ASCII case-insensitive "%5c
", reject promise with a TypeError
and abort these steps.scope
is present, set scopeURL to options.scope
.
+ scope
is present, set scopeURL to the result of parsing options.scope
with the context object’s relevant settings object’s API base URL.
type
.
getRegistration(clientURL)
method must run these steps:
TypeError
.
SecurityError
" exception.
Link
header.
- scope
" target attribute of the Link
header, or null if no such attribute is present.
+ scope
" target attribute of the Link
header is present, set scopeURL to the result of parsing the "scope
" target attribute with scriptURL.
workertype
" target attribute of the Link
header, or "classic
" if no such attribute is present.
WorkerType
value, abort these steps.
When a serviceworker link’s link
element is inserted into a document, a serviceworker link is created on a link
element that is already in a Document, or the href
or scope
attributes of the link
element of a serviceworker link is changed, the user agent should run these steps:
When a serviceworker link’s link
element is inserted into a document, a serviceworker link is created on a link
element that is already in a document tree, or the href
or scope
attributes of the link
element of a serviceworker link is changed, the user agent should run these steps:
href
attribute is the empty string, abort these steps.
error
at the link
element, and abort these steps.
- href
attribute with document’s document base URL.
- scope
attribute, or null if the scope
attribute is omitted.
+ href
attribute with the link
element’s node document’s document base URL.
+ scope
attribute is present, set scopeURL to the result of parsing the scope
attribute with the link
element’s node document’s document base URL.
workertype
attribute, or "classic
" if the workertype
attribute is omitted.
WorkerType
value, queue a task to fire a simple event named error
at the link
element, and abort these steps.
TypeError
and abort these steps.
http
" and "https
", reject promise with a TypeError
and abort these steps.
%2f
" or ASCII case-insensitive "%5c
", reject promise with a TypeError
and abort these steps.
- ./
" with scriptURL.
+ If scopeURL is null, set scopeURL to the result of parsing the string "./
" with scriptURL.
The scope url for the registration is set to the location of the service worker script by default.
-TypeError
and abort these steps.
http
" and "https
", reject promise with a TypeError
and abort these steps.
%2f
" or ASCII case-insensitive "%5c
", reject promise with a TypeError
and abort these steps.
@@ -5756,7 +5756,8 @@