diff --git a/source b/source index 8fb49f6060f..a32887286bb 100644 --- a/source +++ b/source @@ -2808,6 +2808,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
  • default `User-Agent` value
  • extract a MIME type
  • fetch +
  • non-subresource request
  • ok status
  • `Origin` header
  • process response @@ -3847,7 +3848,15 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

    The following terms are defined in Service Workers:

    @@ -8540,6 +8549,10 @@ partial /*sealed*/ interface Document { data-x="concept-document-module-map">module map, which is a module map, initially empty.

    +

    The Document has an active worker (null or a service worker). It is + initially null.

    +

    Resource metadata management

    @@ -27116,6 +27129,10 @@ href="?audio">audio</a> test instead.)</p>

    The resulting Document must be considered an iframe srcdoc document.

    +

    Set the resulting Document's active worker to the iframe element's node document's + active worker.

    +
    Otherwise, if the element has no src attribute @@ -76805,6 +76822,14 @@ dictionary DragEventInit : MouseEventInit { +
    The active worker
    +
    + +

    Return the active worker of the + Document with which window is currently associated.

    + +
    +
  • @@ -81079,6 +81104,28 @@ State: <OUTPUT NAME=I>1</OUTPUT> <INPUT VALUE="Increment" TYPE=BUTTON O algorithm on the Document object and the resource used to generate the document.

    +
  • + +

    If the document's address matched + a service worker registration + registration when the fetch algorithm obtained the resource, and + registration's active worker active + worker is not null, set the Document's active worker to active worker.

    + +

    Fetching a non-subresource (except a service worker) + triggers a service worker registration matching in the handle fetch algorithm. If the request's url is under the scope of a service worker + registration, and it has an active worker, the + document's Window object's environment settings object represented + by a window client starts to be controlled.

    + +
  • +
  • Set the document's referrer to the address of the resource from which Request-URIs are obtained as determined when the fetch algorithm obtained the resource, if that algorithm was used and determined such a value; otherwise, set it to the empty @@ -84952,6 +84999,13 @@ interface NavigatorOnLine { while removing support for a hash function or cypher suite).

    +
    An active worker
    + +
    +

    A service worker that controls this environment settings object. The value will + be either null or a service worker.

    +
    +

    An environment settings object also has an outstanding rejected promises @@ -94270,6 +94324,10 @@ interface WorkerGlobalScope : EventTarget { data-x="concept-WorkerGlobalScope-module-map">module map. It is a module map, initially empty.

    +

    A WorkerGlobalScope object has an associated active worker (null or a service worker). It is initially null. +

    The self attribute must return the WorkerGlobalScope object itself.

    @@ -94601,6 +94659,28 @@ interface WorkerGlobalScope : EventTarget {
  • Execute the Initialize a global object's CSP list algorithm on worker global scope and response.

    +
  • + +

    If url matched a service worker registration registration when + the fetch algorithm obtained the resource, and registration's active worker active worker is not null, set worker global + scope's active worker to + active worker.

    + +

    Fetching a non-subresource (except a service worker) + triggers a service worker registration matching in the handle fetch algorithm. If the request's + url is under the scope + of a service worker registration, and it has + an active worker, the WorkerGlobalScope + object's environment settings object represented by a worker client starts to be controlled.

    + +
  • +
  • If is shared is true, and there are any relevant application caches that are identified by a manifest URL with the same origin as url and that have url as one of their @@ -94926,6 +95006,14 @@ interface AbstractWorker { +

    The active worker
    +
    + +

    Return worker global scope's active worker.

    + +
    +