From fb87b70df0af3a5e6bc7bb9a91b4dc7eb4924acb Mon Sep 17 00:00:00 2001 From: Jungkee Song Date: Mon, 24 Oct 2016 20:58:40 +0900 Subject: [PATCH] Add request's reserved client and target client id This patch defines the request's reserved client and the target client id. The reserved client of a request is set to an environment or an environment settings object during a navigation or a worker creation request, respectively. The target client id of a request is set to the target browsing context's active document's environment settings object's id during a navigation. The given values are primarily used to provide the reserved client's id and target client's id to service workers' fetch event handlers. This removes the request's target browsing context as the reserved client provides the same information. Related issue: https://github.com/w3c/ServiceWorker/issues/870 Related change: https://github.com/whatwg/html/pull/1776 --- Overview.html | 26 +++++++++++++++++++++----- Overview.src.html | 24 ++++++++++++++++++++---- 2 files changed, 41 insertions(+), 9 deletions(-) diff --git a/Overview.html b/Overview.html index 9285272de..a55b03936 100644 --- a/Overview.html +++ b/Overview.html @@ -7,7 +7,7 @@

Fetch

-

Living Standard — Last Updated 17 October 2016

+

Living Standard — Last Updated 24 October 2016

Participate: @@ -731,6 +731,26 @@

3.1.5 Requests

client (null or an environment settings object). +

A request has an associated +reserved client +(null, an environment, or an +environment settings object). Unless stated otherwise it is null. + +

This is only used by navigation requests and worker +requests, but not service worker requests. It references an +environment for a navigation request and an +environment settings object for a worker request. + +

A request has an associated +target client id +(a string). Unless stated otherwise it is the empty string. + +

This is only used by navigation requests. It is the +id of the +target browsing context's +active document's +environment settings object. +

A request has an associated window ("no-window", "client", or an @@ -745,10 +765,6 @@

3.1.5 Requests

explicitly set request's window. -

A request has an associated -target browsing context -(null or a browsing context). Unless stated otherwise it is null. -

A request has an associated keepalive flag. Unless stated otherwise it is unset. diff --git a/Overview.src.html b/Overview.src.html index 54cacab74..308c026f5 100644 --- a/Overview.src.html +++ b/Overview.src.html @@ -661,6 +661,26 @@

Requests

client (null or an environment settings object). +

A request has an associated +reserved client +(null, an environment, or an +environment settings object). Unless stated otherwise it is null. + +

This is only used by navigation requests and worker +requests, but not service worker requests. It references an +environment for a navigation request and an +environment settings object for a worker request. + +

A request has an associated +target client id +(a string). Unless stated otherwise it is the empty string. + +

This is only used by navigation requests. It is the +id of the +target browsing context's +active document's +environment settings object. +

A request has an associated window ("no-window", "client", or an @@ -675,10 +695,6 @@

Requests

explicitly set request's window. -

A request has an associated -target browsing context -(null or a browsing context). Unless stated otherwise it is null. -

A request has an associated keepalive flag. Unless stated otherwise it is unset.