Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 0 additions & 86 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ url:https://tools.ietf.org/html/rfc7234#section-1.2.1;text:delta-seconds;type:df
"WSP": {
"aliasOf": "RFC6455"
},
"CLIENT-HINTS": {
"authors": [
"Ilya Grigorik"
],
"href": "https://tools.ietf.org/html/draft-ietf-httpbis-client-hints",
"publisher": "IETF",
"title": "HTTP Client Hints"
},
"HTTPVERBSEC1": {
"publisher": "US-CERT",
"href": "https://www.kb.cert.org/vuls/id/867593",
Expand Down Expand Up @@ -697,14 +689,6 @@ fetch("https://victim.example/naïve-endpoint", {
</code></pre>
</div>

<dt>`<code><a href=http://httpwg.org/http-extensions/client-hints.html#dpr>DPR</a></code>`
<dt>`<code><a href=http://httpwg.org/http-extensions/client-hints.html#downlink>Downlink</a></code>`
<dt>`<code><a href=http://httpwg.org/http-extensions/client-hints.html#save-data>Save-Data</a></code>`
<dt>`<code><a href=http://httpwg.org/http-extensions/client-hints.html#viewport-width>Viewport-Width</a></code>`
<dt>`<code><a href=http://httpwg.org/http-extensions/client-hints.html#width>Width</a></code>`
<dd><p>If <var>value</var>, <a lt="extract header values">once extracted</a>, is failure, then
return false.

<dt>Otherwise
<dd><p>Return false.
</dl>
Expand Down Expand Up @@ -1311,16 +1295,6 @@ to not have to set <a for=/>request</a>'s <a for=request>referrer</a>.
<p class="note no-backref">This can be used to override a referrer policy associated with an
<a>environment settings object</a>.


<p>A <a for=/>request</a> has an associated
<dfn export for=request id=concept-request-client-hints-list>client hints list</dfn>,
which is a <a lt="client hints list" for=client>client-hints list</a>. Unless stated
otherwise, it is the empty list.

<p class="note no-backref">This will be used to override a client hints list associated with
an <a>environment settings object</a>.
[[!CLIENT-HINTS]]

<p>A <a for=/>request</a> has an associated
<dfn id=synchronous-flag export for=request>synchronous flag</dfn>. Unless stated otherwise it is
unset.
Expand Down Expand Up @@ -2141,19 +2115,6 @@ run these steps:
</ol>


<h3 id=client-hints-list>Client hints list</h3>

<p class=note>This section will be integrated into HTTP Client Hints.
[[!CLIENT-HINTS]]
<!-- XXX -->

<p>A <dfn export id=concept-client-hints-list for=client>client hints list</dfn> is a
<a for=/>list</a> of
<a href=http://httpwg.org/http-extensions/client-hints.html#accept-ch>Client hint tokens</a>, each
of which is one of `<code>DPR</code>`, `<code>Save-Data</code>`, `<code>Viewport-Width</code>`, or
`<code>Width</code>`.


<h3 id=streams>Streams</h3>

<p class="note no-backref">This section might be integrated into other standards, such as IDL.
Expand Down Expand Up @@ -3145,57 +3106,10 @@ the request.
for HTTP/2, and equivalent information used to prioritize dispatch and processing of
HTTP/1 fetches.

<li>
<p>If <var>request</var> is a <a>navigation request</a>, a user agent should, for each
<a for=/>header</a> <a for=header>name</a> (<var>hintName</var>) in the first column of the
following table, if <var>request</var>'s <a for=request>header list</a>
<a for="header list">does not contain</a> <var>hintName</var>, then
<a for="header list">append</a>
<var>hintName</var>/the value given in the same row on the second column, to
<var>request</var>'s <a for=request>header list</a>.

<table>
<tbody><tr>
<th><a for=header>Name</a>
<th><a for=header>Value</a>
<tr>
<td>`<code>DPR</code>`
<td>a suitable <a href=http://httpwg.org/http-extensions/client-hints.html#dpr>dpr value</a>
<tr>
<td>`<code>Save-Data</code>`
<td>a suitable <a href=http://httpwg.org/http-extensions/client-hints.html#save-data>save-data value</a>
<tr>
<td>`<code>Viewport-Width</code>`
<td>a suitable <a href=http://httpwg.org/http-extensions/client-hints.html#viewport-width>viewport-width value</a>
</table>

<li>
<p>If <var>request</var> is a <a>subresource request</a>, then:

<ol>
<li>
<p><a for=list>For each</a> <var>hintName</var> of <var>request</var>'s
<a for=client>client hints list</a>:

<ol>
<li>
<p>Let <var>value</var> be the first matching statement, switching on <var>hintName</var>:

<dl class=switch>
<dt>`<code>DPR</code>`
<dd>a suitable <a href=http://httpwg.org/http-extensions/client-hints.html#dpr>dpr value</a>
<dt>`<code>Save-Data</code>`
<dd>a suitable <a href=http://httpwg.org/http-extensions/client-hints.html#save-data>save-data value</a>
<dt>`<code>Viewport-Width</code>`
<dd>a suitable <a href=http://httpwg.org/http-extensions/client-hints.html#viewport-width>viewport-width value</a>
<dt>`<code>Width</code>`
<dd>a suitable <a href=http://httpwg.org/http-extensions/client-hints.html#width>width value</a>
</dl>

<li><p>A user agent should <a for="header list">append</a>
<var>hintName</var>/<var>value</var> to <var>request</var>'s <a for=request>header list</a>.
</ol>

<li><p>Let <var>record</var> be a new
<a for="fetch group">fetch record</a> consisting of
<var>request</var> and this instance of the
Expand Down