Skip to content

Commit e1e9567

Browse files
noamrannevk
andauthored
Body sizes should be CORS rather than TAO protected
The encoded/decoded body size relate to the resource, not to the timing. Tests: web-platform-tests/wpt#37884 & web-platform-tests/wpt#37257. This is part of w3c/resource-timing#220 (comment). Co-authored-by: Anne van Kesteren <[email protected]>
1 parent a5560d2 commit e1e9567

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

fetch.bs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2396,7 +2396,8 @@ this is also tracked internally using the request's <a for=request>timing allow
23962396
<p>A <dfn export id=concept-network-error>network error</dfn> is a <a for=/>response</a> whose
23972397
<a for=response>type</a> is "<code>error</code>", <a for=response>status</a> is 0,
23982398
<a for=response>status message</a> is the empty byte sequence,
2399-
<a for=response>header list</a> is « », and <a for=response>body</a> is null.
2399+
<a for=response>header list</a> is « », <a for=response>body</a> is null, and
2400+
<a for=response>body info</a> is a new <a for=/>response body info</a>.
24002401

24012402
<p>An <dfn export id=concept-aborted-network-error>aborted network error</dfn> is a
24022403
<a>network error</a> whose <a for=response>aborted flag</a> is set.
@@ -2467,17 +2468,19 @@ of defining the concrete types of <a for=/>filtered responses</a>.)
24672468
<a for=response>URL list</a> is « »,
24682469
<a for=response>status</a> is 0,
24692470
<a for=response>status message</a> is the empty byte sequence,
2470-
<a for=response>header list</a> is « », and
2471-
<a for=response>body</a> is null.
2471+
<a for=response>header list</a> is « »,
2472+
<a for=response>body</a> is null, and
2473+
<a for=response>body info</a> is a new <a for=/>response body info</a>.
24722474

24732475
<p>An
24742476
<dfn export id=concept-filtered-response-opaque-redirect>opaque-redirect filtered response</dfn>
24752477
is a <a>filtered response</a> whose
24762478
<a for=response>type</a> is "<code>opaqueredirect</code>",
24772479
<a for=response>status</a> is 0,
24782480
<a for=response>status message</a> is the empty byte sequence,
2479-
<a for=response>header list</a> is « », and
2480-
<a for=response>body</a> is null.
2481+
<a for=response>header list</a> is « »,
2482+
<a for=response>body</a> is null, and
2483+
<a for=response>body info</a> is a new <a for=/>response body info</a>.
24812484

24822485
<div class=note>
24832486
<p>Exposing the <a for=response>URL list</a> for
@@ -4696,8 +4699,7 @@ steps:
46964699
<li>
46974700
<p>If <var>response</var>'s <a for=response>timing allow passed flag</a> is not set,
46984701
then set <var>timingInfo</var> to the result of <a>creating an opaque timing info</a> for
4699-
<var>timingInfo</var>, set <var>bodyInfo</var> to a new <a for=/>response body info</a>, and
4700-
set <var>cacheState</var> to the empty string.
4702+
<var>timingInfo</var> and set <var>cacheState</var> to the empty string.
47014703

47024704
<p class=note>This covers the case of <var>response</var> being a <a>network error</a>.
47034705

0 commit comments

Comments
 (0)