Skip to content

Commit 525c938

Browse files
committed
Added compression dictionary disallowed flag
1 parent 86ffbfb commit 525c938

1 file changed

Lines changed: 23 additions & 22 deletions

File tree

fetch.bs

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2303,11 +2303,6 @@ Unless stated otherwise, it is zero.
23032303
which is "<code>basic</code>", "<code>cors</code>", or "<code>opaque</code>".
23042304
Unless stated otherwise, it is "<code>basic</code>".
23052305

2306-
<p>A <a for=/>request</a> has an associated
2307-
<dfn export for=request id=concept-request-corp-tainting>corp tainting</dfn>,
2308-
which is "<code>allowed</code>", or "<code>blocked</code>".
2309-
Unless stated otherwise, it is "<code>allowed</code>".
2310-
23112306
<p>A <a for=/>request</a> has an associated
23122307
<dfn export for=request id=no-cache-prevent-cache-control>prevent no-cache cache-control header modification flag</dfn>.
23132308
Unless stated otherwise, it is unset.
@@ -2319,9 +2314,14 @@ Unless stated otherwise, it is unset.
23192314
<dfn export for=request id=timing-allow-failed>timing allow failed flag</dfn>. Unless stated
23202315
otherwise, it is unset.
23212316

2317+
<p>A <a for=/>request</a> has an associated
2318+
<dfn export for=request id=compression-dictionary-disallowed>compression dictionary disallowed flag</dfn>.
2319+
Unless stated otherwise, it is unset.
2320+
23222321
<p class=note>A <a for=/>request</a>'s <a for=request>URL list</a>, <a for=request>current URL</a>,
23232322
<a for=request>redirect count</a>, <a for=request>response tainting</a>,
2324-
<a for=request>done flag</a>, and <a for=request>timing allow failed flag</a> are used as
2323+
<a for=request>done flag</a>, <a for=request>timing allow failed flag</a>, and
2324+
<a for=request>compression dictionary disallowed flag</a> are used as
23252325
bookkeeping details by the <a for=/>fetch</a> algorithm.
23262326

23272327
<p>A <a for=/>request</a> has an associated
@@ -5022,6 +5022,18 @@ steps:
50225022
</ol>
50235023
</dl>
50245024

5025+
<li><p>If <var>request</var>'s <a for=request>response tainting</a> is "<code>opaque</code>",
5026+
then:
5027+
5028+
<ol>
5029+
<li><p>Let <var>corpPolicy</var> be the result of <a for="header list">getting</a>
5030+
`<a http-header><code>Cross-Origin-Resource-Policy</code></a>` from <var>response</var>'s
5031+
<a for=response>header list</a>.
5032+
5033+
<li><p>If <var>corpPolicy</var> is not `<code>cross-origin</code>`, then set
5034+
<var>request</var>'s <a for=request>compression dictionary disallowed flag</a>.
5035+
</ol>
5036+
50255037
<li><p>If <var>recursive</var> is true, then return <var>response</var>.
50265038

50275039
<li>
@@ -6565,8 +6577,9 @@ run these steps:
65656577
<var>request</var> and the given realm.
65666578

65676579
<li>
6568-
<p>If <var>response</var>'s <a for=response>header list</a>
6569-
<a for="header list">contains</a> `<code>Use-As-Dictionary</code>`:
6580+
<p>If <var>request</var>'s <a for=request>compression dictionary disallowed flag</a> is not set
6581+
and <var>response</var>'s <a for=response>header list</a> <a for="header list">contains</a>
6582+
`<code>Use-As-Dictionary</code>`:
65706583
<!-- This is defined in [[!RFC9842]] -->
65716584

65726585
<ol>
@@ -6589,13 +6602,6 @@ run these steps:
65896602
<li><p>If <var>pattern</var> is failure or <var>pattern</var> <a for=/>has regexp groups</a>,
65906603
then return <var>response</var>.
65916604

6592-
<li><p>Let <var>corpPolicy</var> be the result of <a for="header list">getting</a>
6593-
`<a http-header><code>Cross-Origin-Resource-Policy</code></a>` from <var>response</var>'s
6594-
<a for=response>header list</a>.
6595-
6596-
<li><p>If <var>request</var>'s <a for=request>response tainting</a> is "<code>opaque</code>" and
6597-
<var>corpPolicy</var> is not `<code>cross-origin</code>`, then return <var>response</var>.
6598-
65996605
<li><p>Let <var>expirationTime</var> be the time at which the <var>response</var> becomes
66006606
a <a>stale response</a>.
66016607

@@ -6663,13 +6669,8 @@ given a <a for=/>fetch params</a> <var>fetchParams</var>, an optional boolean
66636669
<li><p>If <var>codings</var> is null or does not contain `<code>dcb</code>` or `<code>dcz</code>`,
66646670
then return <var>response</var>.
66656671

6666-
<li><p>Let <var>corpPolicy</var> be the result of <a for="header list">getting</a>
6667-
`<a http-header><code>Cross-Origin-Resource-Policy</code></a>` from <var>response</var>'s
6668-
<a for=response>header list</a>.
6669-
6670-
<li><p>If <var>response</var>'s <a for=response>type</a> is "<code>opaque</code>" and
6671-
<var>corpPolicy</var> is not `<code>cross-origin</code>`, then return a
6672-
<a>network error</a>.
6672+
<li><p>If <var>request</var>'s <a for=request>compression dictionary disallowed flag</a>
6673+
is set, then return a <a>network error</a>.
66736674

66746675
<li><p>Let <var>availableDictionaryHash</var> be the result of
66756676
<a>getting a structured field value</a> given `<code>Available-Dictionary</code>`,

0 commit comments

Comments
 (0)