From 1ba8b2dcd0b502a41e7a005af8a401a051034a87 Mon Sep 17 00:00:00 2001
From: Yoav Weiss
Return the result of running Retrieve client-hints + list with origin as input.
+ +Let callerIsSecureContext be the result of executing Is environment
+ settings object a secure context? on the Window object's
+ environment settings object.
If response's
+
+ Accept-CH header is present, and callerIsSecureContext is true, add each parsed
+ client hints token to the
+ client-hints list of the Window object's environment settings object.
If response's
+
+ Accept-CH-Lifetime header is present, and callerIsSecureContext is true,
+ call create a new entry with response
+ 's origin, the parsed max-age, and the client-hints list of the
+ Window object's environment settings object.
If request is non-null, then set document's referrer to the ApplicationCache : EventTarget {
+ An Accept-CH-Lifetime cache is owned by
+ the user agent and consists of a list of entries where each entry has the following fields:
+ Entries must be removed after the seconds specified in the
+ max-age field have passed since
+ storing the entry. Entries may be removed before that.
+
+ To create a new entry in the Accept-CH-Lifetime cache, given
+ origin, max-age, and client-hints list, do so as follows:
+ To retrieve
+ client-hints list, given an origin:
+ The client hints list for
+ fetches performed using this environment settings
+ object as a request client.
+
An environment settings object also has an outstanding rejected promises
@@ -98961,6 +99043,15 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope {
Return the result of running Retrieve client-hints
+ list with origin as input.Accept-CH-Lifetime cache
+
+
+
+
+
+
+
Web application APIs
@@ -87014,6 +87089,13 @@ interface ApplicationCache : EventTarget {
performed using this environment settings object as a request client.
+
To retrieve
+ To retrieve
client-hints list, given an origin:
The client hints list for
From 15f0eeb9bd446617faec3ce75ab472c17bfa5123 Mon Sep 17 00:00:00 2001
From: Yoav Weiss The Accept-CH lifetime cache can effectively act as an alternative cookie store,
+ since sites can use each of the hints as a bit set on the client, and that information will be
+ communicated to them on every request. As such, it is appropriate for user agents to evict that
+ cache whenever the user clears their cookies If response's
-
- Accept-CH-Lifetime header is present, and callerIsSecureContext is true,
- call If response's ` If request is non-null, then set document's referrer to the ApplicationCache : EventTarget {
storing the entry. Entries may be removed before that.
To create a new entry in the Accept-CH-Lifetime cache, given
- origin, max-age, and client-hints list, do so as follows:
+ data-definition-for="concept-accept-ch-lifetime-cache">add a new Accept-CH-Lifetime cache entry
+ in the Accept-CH-Lifetime cache,
+ given origin, max-age, and client-hints list,
+ add a new entry with the following fields to the Accept-CH-Lifetime cache:
To retrieve
- client-hints list, given an origin:
+ To retrieve the
+ client-hints list given an origin:
Let client-hints list be an empty list. Let originMatchingEntries be the entries in Accept-CH-Lifetime cache which
+ origin is identical to origin.
+ For each entry in originMatchingEntries, for each token in its client-hints list, append it to
+ client-hints list. Return client-hints list. The Accept-CH lifetime cache can effectively act as an alternative cookie store,
since sites can use each of the hints as a bit set on the client, and that information will be
communicated to them on every request. As such, it is appropriate for user agents to evict that
- cache whenever the user clears their cookies Return the result of running Retrieve client-hints
+ data-x="concept-retrieve-client-hints-list-accept-ch-lifetime-cache">Retrieve the client-hints
list with origin as input. This pragma sets the client-hints that the author is interested in for content-negotiation
purposes. It does that by setting environment settings object's
- client-hints list. If callerIsSecureContext is true, parse acceptCHValue according
to the ` This pragma makes sure that client-hints are persistent on the origin for a specified time.
It does so by adding the environment settings object's
- client-hints list to the
+ client-hints set to the
Accept-CH-Lifetime cache. Return the result of running retrieve the client-hints
- list with this environment settings object's retrieve the client-hints set with this environment settings object's origin. Entries must be removed after the seconds specified in the
max-age field have passed since
@@ -86847,7 +86848,7 @@ interface ApplicationCache : EventTarget {
To add a new Accept-CH-Lifetime cache entry
in the Accept-CH-Lifetime cache,
- given origin, max-age, and client-hints list,
+ given origin, max-age, and client-hints set,
add a new entry with the following fields to the Accept-CH-Lifetime cache:
To retrieve the
- client-hints list given an origin:
+ To retrieve the
+ client-hints set given an origin:
Let client-hints list be an empty list. Let client-hints set be an empty ordered set. Let originMatchingEntries be the entries in Accept-CH-Lifetime cache which
origin is identical to origin.
For each entry in originMatchingEntries, for each token in its client-hints list, append it to
- client-hints list. Return client-hints list. Return client-hints set. The Accept-CH lifetime cache can effectively act as an alternative cookie store,
@@ -87196,12 +87198,12 @@ interface ApplicationCache : EventTarget {
performed using this environment settings object as a request client.
- The client-hints list for
- fetches performed using this environment settings
- object as a request client.
+ A set of client hints used for fetches performed
+ using this environment settings object as a request client.
@@ -99150,12 +99152,13 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope {
Return the result of running Retrieve the client-hints
- list with origin as input. The following terms are defined in Client Hints: The following terms is defined in Fetch: The The This pragma sets the client-hints that the author is interested in for content-negotiation
- purposes. It does that by setting environment settings object's
- client-hints set. Let acceptCHValue be the If callerIsSecureContext is true, parse acceptCHValue according
- to the ` If callerIsSecureContext is true and settingsObject's origin is identical to the top-level
+ frame's origin, parse acceptCHValue according
+ to the ` This pragma makes sure that client-hints are persistent on the origin for a specified time.
- It does so by adding the environment settings object's
- client-hints set to the
- Accept-CH-Lifetime cache. If callerIsSecureContext is true, parse acceptCHLifetimeValue
according to the ` Return the result of running retrieve the client-hints set with this environment settings object's origin. Let document be the Return the document's client-hints set.
+ For each entry in clientHintsSet, append
+ it to the Let callerIsSecureContext be the result of executing Is environment
settings object a secure context? on settingsObject. If response's ` If response's ` If response's ` If response's ` If request is non-null, then set document's Accept-CH-Lifetime cache
An Accept-CH-Lifetime cache is owned by
the user agent and consists of a list of entries where each entry has the following fields:
- Entries must be removed after the seconds specified in the
max-age field have passed since
@@ -86865,8 +86905,8 @@ interface ApplicationCache : EventTarget {
To retrieve the
- client-hints set given an origin:
+ To
+ retrieve the client-hints set given an origin:
Let client-hints set be an empty ordered set. Let originMatchingEntries be the entries in ApplicationCache : EventTarget {
origin is identical to origin.
For each entry in originMatchingEntries, for each token in its client-hints set, append it to
- client-hints set. Return client-hints set. A set of client hints used for fetches performed
- using this environment settings object as a request client.
+ A client-hints set used for fetches performed using this
+ environment settings object as a
+ request client.
@@ -98372,6 +98412,11 @@ interface WorkerGlobalScope : EventTarget {
data-dfn-for="WorkerGlobalScope" data-x="concept-WorkerGlobalScope-referrer-policy">referrer
policy (a referrer policy). It is initially the empty string. A A Let clientHintsSet be the result of running retrieve the client-hints
+ set with inside settings's origin. For each entry in clientHintsSet, append
+ it to the Execute the Initialize a Return the result of running retrieve the client-hints set with origin as input. Return worker global scope's client-hints set. The following terms is defined in Fetch: The following term is defined in Fetch: The following terms are defined in HTTP: Let acceptCHValue be the If callerIsSecureContext is true and settingsObject's origin is identical to the top-level
- frame's origin, parse acceptCHValue according
- to the ` If callerIsSecureContext is true, parse acceptCHValue
+ according to the ` Let settingsObject be the meta element's relevant settings object. If callerIsSecureContext is true, parse acceptCHLifetimeValue
- according to the ` Let topLevelOrigin be the origin of the top-level
+ browsing context's environment settings object's origin.
+ If callerIsSecureContext is true, and settingsObject's
+ origin is equal to topLevelOrigin, parse
+ acceptCHLifetimeValue according to the ` Let topLevelOrigin be the origin of the top-level
+ browsing context's environment settings object's origin.
+ If response's ` If Type(result) is String, then set
response to a response whose
Date: Fri, 29 Jun 2018 00:19:12 +0200
Subject: [PATCH 09/19] window object
---
source | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/source b/source
index 0d3254d19fa..02ed8f4b442 100644
--- a/source
+++ b/source
@@ -14986,14 +14986,14 @@ people expect to have work and what is necessary.
If the Let settingsObject be the meta element's relevant settings object. Let callerIsSecureContext be the result of executing Is environment
- settings object a secure context? on the Let acceptCHLifetimeValue be the Let settingsObject be the meta element's relevant settings object. Let topLevelOrigin be the origin of the top-level
browsing context's environment settings object's origin.
From fd110a5f407afd7ce6d78f5a002411e4e49143bc Mon Sep 17 00:00:00 2001
From: Domenic Denicola The following terms are defined in Client Hints: The following term is defined in Fetch: The following terms are defined in HTTP: The The This pragma sets the client-hints that the author is interested in for content-negotiation
- purposes. It does that by appending to the current Document's client-hints set. This pragma sets the client hints that the author is interested in for
+ content-negotiation purposes. It does that by appending to the current If the If the If the Let settingsObject be the meta element's relevant settings object. Let settingsObject be the Let callerIsSecureContext be the result of executing Is environment
- settings object a secure context? on settingsObject. If the result of executing Is environment settings object a secure context?
+ on settingsObject is false, then return. Let acceptCHValue be the If callerIsSecureContext is true, parse acceptCHValue
- according to the ` Parse acceptCHValue according to the ` This pragma makes sure that client-hints are persistent on the origin for a specified time.
- It does so by adding the current document's This pragma makes sure that client hints are persistent on the origin for a
+ specified time. It does so by adding the current If the If the If the Let settingsObject be the meta element's relevant settings object. Let settingsObject be the Let callerIsSecureContext be the result of executing Is environment
- settings object a secure context? on the settingsObject. If the result of executing Is environment settings object a secure context?
+ on settingsObject is false, then return. Let acceptCHLifetimeValue be the Let topLevelOrigin be the origin of the top-level
- browsing context's environment settings object's origin.
- If callerIsSecureContext is true, and settingsObject's
- origin is equal to topLevelOrigin, parse
- acceptCHLifetimeValue according to the ` If settingsObject's origin is not same origin with
+ topLevelOrigin, then return. Parse acceptCHLifetimeValue according to the
+ ` Let document be the Return the document's client-hints set.
- Return the client-hints set of
+ window's associated
+ For each entry in clientHintsSet, append
+ it to the Let evaluationStatus be the result of running the classic script script. If Type(result) is String, then set
@@ -86907,64 +86897,71 @@ interface ApplicationCache : EventTarget {
An Accept-CH-Lifetime cache is owned by
- the user agent and consists of a list of entries where each entry has the following fields:
+ the user agent and consists of a list of structs that
+ each have the following fields: Entries must be removed after the seconds specified in the
- max-age field have passed since
- storing the entry. Entries may be removed before that.
+ Entries must be removed after the seconds specified in the max-age field have passed since storing
+ the entry. Entries may be removed before that. The Accept-CH lifetime cache can effectively act as an alternative cookie store,
+ since sites can use each of the hints as a bit set on the client, and that information will be
+ communicated to them on every request. As such, it is appropriate for user agents to evict that
+ cache whenever the user clears their cookies.
+
+ To add a new Accept-CH-Lifetime cache entry
- in the Accept-CH-Lifetime cache,
- given origin, max-age, and client-hints set,
- add a new entry with the following fields to the Accept-CH-Lifetime cache:
+ To add a new Accept-CH-Lifetime cache entry to the Accept-CH-Lifetime cache, given
+ origin, max-age, and client-hints set, append a new struct with the following fields to the Accept-CH-Lifetime cache: To
- retrieve the client-hints set given an origin:
+ To retrieve the client-hints set given an origin: Let client-hints set be an empty ordered set. Let originMatchingEntries be the entries in Accept-CH-Lifetime cache which
- origin is identical to origin.
- Let client-hints set be an empty ordered
+ set. Let originMatchingEntries be the entries in the Accept-CH-Lifetime cache whose origin is same origin with
+ origin. For each entry in originMatchingEntries, for each token in its client-hints set, append it to client-hints set. Return client-hints set. The Accept-CH lifetime cache can effectively act as an alternative cookie store,
- since sites can use each of the hints as a bit set on the client, and that information will be
- communicated to them on every request. As such, it is appropriate for user agents to evict that
- cache whenever the user clears their cookies.
-
- A A Let clientHintsSet be the result of running retrieve the client-hints
+ Let clientHintsSet be the result of running retrieve the client-hints
set with inside settings's origin. For each entry in clientHintsSet, append
- it to the For each hint in clientHintsSet, append hint to the Let evaluationStatus be the result of running the classic script script. For each entry in clientHintsSet, append
- it to the For each hint in in clientHintsSet, append hint to worker global scope's client-hints set. Execute the Initialize a The following terms are defined in the WebSocket protocol specification: The Parse acceptCHValue according to the ` Let acceptCHLifetimeValue be the Let topLevelOrigin be the origin of the top-level
- browsing context's active document. If the If the Let topLevelOrigin be the origin of the If settingsObject's origin is not same origin with
@@ -82948,13 +82958,12 @@ interface Location { // but see also field-name. Add each parsed client hints token to the
- Document's client-hints set.
- Let topLevelOrigin be the origin of the top-level
- browsing context's environment settings object's origin.
- If response's ` Entries must be removed after the seconds specified in the max-age field have passed since storing
the entry. Entries may be removed before that. The Accept-CH lifetime cache can effectively act as an alternative cookie store,
+ The Accept-CH lifetime cache can effectively act as an alternative cookie store,
since sites can use each of the hints as a bit set on the client, and that information will be
communicated to them on every request. As such, it is appropriate for user agents to evict that
cache whenever the user clears their cookies.
@@ -87276,7 +87285,7 @@ interface ApplicationCache : EventTarget {
A client-hints set used for A client-hints set used for fetches performed using this
environment settings object as a
request client.
@@ -98450,7 +98459,7 @@ interface WorkerGlobalScope : EventTarget {
A A The following terms are defined in the WebSocket protocol specification: The The Parse acceptCHValue according to the ` Entries must be removed after the seconds specified in the ApplicationCache : EventTarget {
A client-hints set used for fetches performed using this
- environment settings object as a
- request client.
+ A client-hints set used for fetches
+ performed using this environment settings object as a request client.
@@ -98459,8 +98455,7 @@ interface WorkerGlobalScope : EventTarget {
A A The following terms are defined in the Cookie specification: The following terms are defined in HTTP: Parse acceptCHValue according to the ` Parse acceptCHLifetimeValue according to the
` The following terms are defined in Structured Headers: For each hint in clientHintsSet, append hint to the Let evaluationStatus be the result of running the classic script script. Let topLevelOrigin be the origin of the top-level
- browsing context's environment settings object's
- origin. If response's ` If Type(result) is String, then set
response to a response whose Location { // but see also client-hints set. Let callerIsSecureContext be the result of executing Is environment
- settings object a secure context? on settingsObject. Let settingsObject be the If response's ` Let clientHintsSet be the result of running retrieve the client-hints
+ set with settingsObject's origin. For each hint in clientHintsSet, append hint to the If response's ` Let callerIsSecureContext be the result of executing Is environment
+ settings object a secure context? on settingsObject. Let topLevelOrigin be the origin of the top-level
+ browsing context's environment settings object's
+ origin. If response's ` If request is non-null, then set document's Let settingsObject be the Let clientHintsSet be the result of running retrieve the client-hints
+ Let clientHintsSet be the result of running retrieve the client-hints
set with settingsObject's origin. For each entry in clientHintsSet, append
- it to the Let settingsObject be the Let clientHintsSet be the result of running retrieve the client-hints
- set with settingsObject's origin. For each hint in clientHintsSet, append hint to the Let callerIsSecureContext be the result of executing Is environment
+ Let callerIsSecureContext be the result of executing Is environment
settings object a secure context? on settingsObject. If response's `
+ Web application APIs
Scripting
From 59ff341026a92e37855fd2a9bd054b34862a60b0 Mon Sep 17 00:00:00 2001
From: Yoav Weiss Content security policy
content-security-policy
+
+ Accept-CH
+ accept-ch
+
+
+ Accept-CH-Lifetime
+ accept-ch-lifetime
+
- Accept-CH-Lifetime` header is present, and
+ callerIsSecureContext is true, call create a new entry with response
- 's origin, the parsed max-age, and the client-hints list of the
+ 's origin, the parsed max-age, and settingsObject's
+ client-hints list of the
Window object's environment settings object.
-
-
Web application APIs
@@ -99138,7 +99154,7 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope {
Accept-CH` header parsing rules. Add each parsed client hints token to the
- client-hints list of
+ client-hints set of
settingsObject.Window object's environment settings object.
@@ -86836,9 +86836,10 @@ interface ApplicationCache : EventTarget {
origin)
@@ -86859,24 +86860,25 @@ interface ApplicationCache : EventTarget {
data-definition-for="concept-accept-ch-lifetime-cache">max-age
-
-
-
+
+
Document.
+ Document has a client-hints set (a
+ client-hints set), initially the empty set, which represents the default client hints used by fetches
+ initiated by the Document.Document has a CSP list, which is a CSP list
containing all of the Content Security Policy objects active for the document. The
@@ -14894,15 +14916,15 @@ people expect to have work and what is necessary.
http-equiv="
+ Accept-CH state (http-equiv=")
accept-ch"meta element's
content attribute's value.Accept-CH` header parsing rules. Add each parsed client hints token to the
- client-hints set of
- settingsObject.Accept-CH` header parsing rules. Append each parsed client hints token to
+ the current Document's
+ client-hints set.Accept-CH-Lifetime` header parsing rules. Call
create a new entry with
- settingsObject's origin, the parsed max-age, and
- settingsObject's client-hints set.
+
Document with which window is
+ currently associated.Document's client-hints set.Accept-CH`
- header is present, and callerIsSecureContext is true, add each
- parsed client hints token to the settingsObject's client-hints set.Accept-CH` header is present, and
+ callerIsSecureContext is true, add each parsed client hints token to the
+ Document's client-hints set.
+ Accept-CH-Lifetime` header is present, and
- callerIsSecureContext is true, call Accept-CH-Lifetime` header is present,
+ callerIsSecureContext is true, and the response's origin
+ is identical to the top-level document's origin, call create a new entry with response
- 's origin, the parsed max-age, and settingsObject's
- client-hints set of the
- Window object's environment settings object.
+
@@ -87201,9 +87240,10 @@ interface ApplicationCache : EventTarget {
WorkerGlobalScope object has an associated
+ client-hints set (a client-hints set).
+ It is initially the empty set.WorkerGlobalScope object has an associated CSP list, which
is a CSP list containing all of the Content Security
@@ -98798,6 +98843,15 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope {
parsing the `Referrer-Policy`
header of response.Document's client-hints set.global object's CSP list
algorithm on worker global scope and response.
+
+ meta element's
content attribute's value.Accept-CH` header parsing rules. Append each parsed client hints token to
- the current Document's
- client-hints set.Accept-CH` header parsing rules, as a field-name. Append each parsed client-hints token to
+ the current Document's client-hints set.Accept-CH-Lifetime` header parsing rules. Call
- create a new entry with
- settingsObject's origin, the parsed max-age, and the current
+ Accept-CH-Lifetime` header
+ parsing rules, as a delta-seconds. Call create a new entry with
+ settingsObject's origin, the parsed max-age, and the current
Document's client-hints set.
Accept-CH-Lifetime` header is present,
+ callerIsSecureContext is true, and the response's origin
+ is equal to topLevelOrigin, let max-age be the result of parsing the
+ header field value according to the `Accept-CH-Lifetime` header parsing rules, as
+ a delta-seconds. Call create a new entry with response
+ 's origin, max-age, and the Document's
+ client-hints set.meta element has no content
attribute, or if that attribute's value is the empty string, then return.Window object's
- environment settings object.meta element's
content attribute's value.User-Agent` valueOrigin` headerRequestCredentials enumerationRequestDestination enumerationfetch() method
-
-
-
Accept-CH` headerAccept-CH-Lifetime` header
-
Document.Document has a client-hints set (a
- client-hints set), initially the empty set, which represents the default client hints used by fetches
- initiated by the Document.Document.
Document has a CSP list, which is a CSP list
@@ -14934,31 +14918,31 @@ people expect to have work and what is necessary.
Document's
+ client-hints set.
-
@@ -14972,42 +14956,43 @@ people expect to have work and what is necessary.
meta element is not a child of a head element,
+ meta element is not a child of a head element, then
return.meta element has no content
attribute, or if that attribute's value is the empty string, then return.meta element's relevant settings
+ object.meta element's
content attribute's value.Accept-CH` header parsing rules, as a field-name. Append each parsed client-hints token to
- the current Document's Accept-CH` header parsing
+ rules, as a field-name. Append each parsed
+ client-hints token to the meta element's node document's client-hints set.Document's client-hints set to the Accept-CH-Lifetime cache.
-
meta element is not a child of a head element,
+ meta element is not a child of a head element, then
return.meta element has no content
attribute, or if that attribute's value is the empty string, then return.meta element's relevant settings
+ object.meta element's
content attribute's value.Accept-CH-Lifetime` header
- parsing rules, as a delta-seconds. Call create a new entry with
- settingsObject's origin, the parsed max-age, and the current
- Document's client-hints set.
- Accept-CH-Lifetime` header parsing rules, as a delta-seconds. Add a new Accept-CH-Lifetime
+ cache entry with settingsObject's origin, the parsed max-age, and the
+ current Document's client-hints
+ set.
-
+ Document with which window is
- currently associated.Document.Document's client-hints
+ set.Accept-CH-Lifetime cache
+
-
-
-
-
-
- Web application APIs
@@ -98452,9 +98449,9 @@ interface WorkerGlobalScope : EventTarget {
policy (a referrer policy). It is initially the empty string.
WorkerGlobalScope object has an associated
- client-hints set (a client-hints set).
- It is initially the empty set.WorkerGlobalScope object has an associated CSP list, which
@@ -98882,8 +98879,7 @@ interface SharedWorkerGlobalScope : WorkerGlobalScope {
parsing the `Referrer-Policy`
header of response.Document's client-hints
- set.Document's client-hints set.Document's client-hints set.global object's CSP list
algorithm on worker global scope and response. User-Agent` value
Document has a client-hints set (a client-hints set), initially the empty set, which
+ data-x="concept-client-hints-list">client-hints set), initially the empty set, which
represents the default client hints used by fetches initiated by the Document.content attribute's value.
Accept-CH` header parsing
- rules, as a field-name. Append each parsed
- client-hints token to the meta element's node document's field-name. Append each parsed client-hints token to the meta
+ element's node document's client-hints set.meta element's
content attribute's value.meta element has no browsing context,
+ then return.meta element's browsing context has no
+ top-level browsing context (e.g., it is a nested browsing context with
+ no parent browsing context), then return.meta element's
+ browsing context's top-level browsing context's
+ active document.Accept-CH-Lifetime` header is present,
callerIsSecureContext is true, and the response's origin
@@ -86910,14 +86919,14 @@ interface ApplicationCache : EventTarget {
seconds)WorkerGlobalScope object has an associated client-hints
- set (a client-hints set). It is
+ set (a client-hints set). It is
initially the empty set.WorkerGlobalScope object has an associated
Date: Fri, 18 Jan 2019 15:54:17 +0100
Subject: [PATCH 13/19] Actually fix dfns
---
source | 21 ++++++++-------------
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/source b/source
index 0e9cab26fef..0c54455fca3 100644
--- a/source
+++ b/source
@@ -3948,7 +3948,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
Document.Document has a client-hints set (a client-hints set), initially the empty set, which
- represents the default client hints used by client-hints set (a client-hints set), initially the
+ empty set, which represents the default client hints used by fetches initiated by the Document.Document has a Accept-CH` header parsing
rules, as a field-name. Append each parsed client-hints token to the meta
- element's node document's client-hints set.WorkerGlobalScope object has an associated client-hints
- set (a client-hints set). It is
- initially the empty set.WorkerGlobalScope object has an associated CSP list, which
From d92b24a84892f3e23fe088f30f89ca318f0eee68 Mon Sep 17 00:00:00 2001
From: Yoav Weiss Content-Language` headerLast-Modified` headerReferer` header
-
- content attribute's value.
Accept-CH` header parsing
- rules, as a field-name. field-name. Append each parsed client-hints token to the meta
element's node document's client-hints set.Accept-CH-Lifetime` header parsing rules, as a delta-seconds. Add a new Accept-CH-Lifetime
+ data-x="http-delta-seconds">delta-seconds. Add a new Accept-CH-Lifetime
cache entry with settingsObject's origin, the parsed max-age, and the
current Document's client-hints
@@ -82954,7 +82947,7 @@ interface Location { // but see also field-name. Add each parsed client hints token to the
+ data-x="http-field-name">field-name. Add each parsed client hints token to the
Document's client-hints
set.
+
+ Image-related Client Hints request headers
+ There are several image-related Client Hints which enable proactive content negotiation of the
+ most adapted image based on the user's device characteristics. If these headers appear in a
+ request more than once or have multiple values, the server SHOULD only take the last value of the
+ last request header into account.
+
+ DPR
+ The “DPR” request header field is a number that indicates the client’s current Device Pixel
+ Ratio (DPR). Its value SHOULD be identical to `window.devicePixelRatio`.
+
+
+
+ The header's value is a sh-float.
+
+ Viewport-Width
+ The “Viewport-Width” request header field is a number that indicates the layout viewport width
+ in CSS pixels. Its value SHOULD be the viewport width excluding the size of a
+ rendered scroll bar (if any), rounded to the smallest following integer (i.e. ceiling value).
+
+ The header's value is a sh-integer.
+
+ Width
+ The “Width” request header field is a number that indicates the desired resource width in CSS
+ pixels. Its value should be the initiator element's source set's source size, if one exists,
+ rounded to the smallest following integer (i.e. ceiling value).
+
+
+ The header's value is a sh-integer.
+
+ Image-related response headers
+ Content-DPR
+ The “Content-DPR” response header field is a number that indicates the received image's
+ current pixel density.
+
+ The header's value is a sh-float.
+
+
+ The current pixel density affects the calculation of density corrected intrinsic
+ size of image resources. As a result, the server MUST explicitly indicate the DPR of the
+ selected image response whenever the DPR client hint was used, or when the server otherwise
+ modified the image dimensions to compensate for the device's screen density.
Requirements for providing text to act as an alternative for images
@@ -122335,6 +122388,10 @@ INSERT INTERFACES HERE
Document's client-hints set.Accept-CH-Lifetime` header is present,
- callerIsSecureContext is true, and the response's origin
- is equal to topLevelOrigin, let max-age be the result of parsing the
- header field value according to the `Accept-CH-Lifetime` header parsing rules, as
- a delta-seconds. Add a new
- Accept-CH-Lifetime cache entry with response's origin,
- max-age, and the Document's client-hints set.Document's
+ relevant settings object.Accept-CH` header is present, and
- callerIsSecureContext is true, add each parsed client hints token to the
- Document's client-hints set.
- Document's client-hints set.Accept-CH-Lifetime` header is present,
- callerIsSecureContext is true, and the response's origin
- is identical to the top-level document's origin, call create a new entry with response
- 's origin, the parsed max-age, and the Document's
- client-hints set.Accept-CH-Lifetime` header is present,
+ callerIsSecureContext is true, and the response's origin
+ is equal to topLevelOrigin, let max-age be the result of parsing the
+ header field value according to the `Accept-CH-Lifetime` header parsing rules, as
+ a delta-seconds. Add a new
+ Accept-CH-Lifetime cache entry with response's origin,
+ max-age, and the Document's client-hints set.Document's
relevant settings object.Document's client-hints set.Document's
- relevant settings object.Document's client-hints set.Accept-CH` header is present, and
From 335f566e0162a8fdb71e0acd513cff148e32eb53 Mon Sep 17 00:00:00 2001
From: Yoav Weiss document-domain", which
has a default allowlist of *.ch-dpr", which
+ has a default allowlist of 'self'.ch-viewport-width", which
+ has a default allowlist of 'self'.ch-width", which
+ has a default allowlist of 'self'.ch-rtt", which
+ has a default allowlist of 'self'.ch-downlink", which
+ has a default allowlist of 'self'.ch-ect", which
+ has a default allowlist of 'self'.ch-save-data", which
+ has a default allowlist of 'self'.ch-device-memory", which
+ has a default allowlist of 'self'.ch-ua", which
+ has a default allowlist of 'self'.ch-arch", which
+ has a default allowlist of 'self'.ch-model", which
+ has a default allowlist of 'self'.ch-platform", which
+ has a default allowlist of 'self'.ch-lang", which
+ has a default allowlist of 'self'.User-Agent` value