Skip to content

Commit 3c7ab0c

Browse files
committed
Added compression dictionary disallowed flag
1 parent b09bca2 commit 3c7ab0c

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
@@ -2293,11 +2293,6 @@ Unless stated otherwise, it is zero.
22932293
which is "<code>basic</code>", "<code>cors</code>", or "<code>opaque</code>".
22942294
Unless stated otherwise, it is "<code>basic</code>".
22952295

2296-
<p>A <a for=/>request</a> has an associated
2297-
<dfn export for=request id=concept-request-corp-tainting>corp tainting</dfn>,
2298-
which is "<code>allowed</code>", or "<code>blocked</code>".
2299-
Unless stated otherwise, it is "<code>allowed</code>".
2300-
23012296
<p>A <a for=/>request</a> has an associated
23022297
<dfn export for=request id=no-cache-prevent-cache-control>prevent no-cache cache-control header modification flag</dfn>.
23032298
Unless stated otherwise, it is unset.
@@ -2309,9 +2304,14 @@ Unless stated otherwise, it is unset.
23092304
<dfn export for=request id=timing-allow-failed>timing allow failed flag</dfn>. Unless stated
23102305
otherwise, it is unset.
23112306

2307+
<p>A <a for=/>request</a> has an associated
2308+
<dfn export for=request id=compression-dictionary-disallowed>compression dictionary disallowed flag</dfn>.
2309+
Unless stated otherwise, it is unset.
2310+
23122311
<p class=note>A <a for=/>request</a>'s <a for=request>URL list</a>, <a for=request>current URL</a>,
23132312
<a for=request>redirect count</a>, <a for=request>response tainting</a>,
2314-
<a for=request>done flag</a>, and <a for=request>timing allow failed flag</a> are used as
2313+
<a for=request>done flag</a>, <a for=request>timing allow failed flag</a>, and
2314+
<a for=request>compression dictionary disallowed flag</a> are used as
23152315
bookkeeping details by the <a for=/>fetch</a> algorithm.
23162316

23172317
<hr>
@@ -4993,6 +4993,18 @@ steps:
49934993
</ol>
49944994
</dl>
49954995

4996+
<li><p>If <var>request</var>'s <a for=request>response tainting</a> is "<code>opaque</code>",
4997+
then:
4998+
4999+
<ol>
5000+
<li><p>Let <var>corpPolicy</var> be the result of <a for="header list">getting</a>
5001+
`<a http-header><code>Cross-Origin-Resource-Policy</code></a>` from <var>response</var>'s
5002+
<a for=response>header list</a>.
5003+
5004+
<li><p>If <var>corpPolicy</var> is not `<code>cross-origin</code>`, then set
5005+
<var>request</var>'s <a for=request>compression dictionary disallowed flag</a>.
5006+
</ol>
5007+
49965008
<li><p>If <var>recursive</var> is true, then return <var>response</var>.
49975009

49985010
<li>
@@ -6514,8 +6526,9 @@ run these steps:
65146526
<var>request</var> and the given realm.
65156527

65166528
<li>
6517-
<p>If <var>response</var>'s <a for=response>header list</a>
6518-
<a for="header list">contains</a> `<code>Use-As-Dictionary</code>`:
6529+
<p>If <var>request</var>'s <a for=request>compression dictionary disallowed flag</a> is not set
6530+
and <var>response</var>'s <a for=response>header list</a> <a for="header list">contains</a>
6531+
`<code>Use-As-Dictionary</code>`:
65196532
<!-- This is defined in [[!RFC9842]] -->
65206533

65216534
<ol>
@@ -6538,13 +6551,6 @@ run these steps:
65386551
<li><p>If <var>pattern</var> is failure or <var>pattern</var> <a for=/>has regexp groups</a>,
65396552
then return <var>response</var>.
65406553

6541-
<li><p>Let <var>corpPolicy</var> be the result of <a for="header list">getting</a>
6542-
`<a http-header><code>Cross-Origin-Resource-Policy</code></a>` from <var>response</var>'s
6543-
<a for=response>header list</a>.
6544-
6545-
<li><p>If <var>request</var>'s <a for=request>response tainting</a> is "<code>opaque</code>" and
6546-
<var>corpPolicy</var> is not `<code>cross-origin</code>`, then return <var>response</var>.
6547-
65486554
<li><p>Let <var>expirationTime</var> be the time at which the <var>response</var> becomes
65496555
a <a>stale response</a>.
65506556

@@ -6612,13 +6618,8 @@ given a <a for=/>fetch params</a> <var>fetchParams</var>, an optional boolean
66126618
<li><p>If <var>codings</var> is null or does not contain `<code>dcb</code>` or `<code>dcz</code>`,
66136619
then return <var>response</var>.
66146620

6615-
<li><p>Let <var>corpPolicy</var> be the result of <a for="header list">getting</a>
6616-
`<a http-header><code>Cross-Origin-Resource-Policy</code></a>` from <var>response</var>'s
6617-
<a for=response>header list</a>.
6618-
6619-
<li><p>If <var>response</var>'s <a for=response>type</a> is "<code>opaque</code>" and
6620-
<var>corpPolicy</var> is not `<code>cross-origin</code>`, then return a
6621-
<a>network error</a>.
6621+
<li><p>If <var>request</var>'s <a for=request>compression dictionary disallowed flag</a>
6622+
is set, then return a <a>network error</a>.
66226623

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

0 commit comments

Comments
 (0)