Skip to content

Commit d1f319e

Browse files
authored
Use response body info instead of timing info for body sizes (#321)
* Use `resource info` instead of `timing info` for body sizes Those numbers are per-response and not per-fetch, so they need to be treated separately. * Rename to resource body info * Rename to resource body info * Adjust to fetch rename * Fix typo
1 parent 148c98c commit d1f319e

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

‎index.html

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,11 @@ <h3>
404404
info=] <a data-dfn-for="PerformanceResourceTiming"><dfn>timing
405405
info</dfn></a>.
406406
</p>
407+
<p>
408+
A <a>PerformanceResourceTiming</a> has an associated [=response body
409+
info=] <a data-dfn-for="PerformanceResourceTiming"><dfn>resource
410+
info</dfn></a>.
411+
</p>
407412
<p>
408413
The <a>PerformanceResourceTiming</a> interface participates in the
409414
<a data-cite=
@@ -653,13 +658,13 @@ <h3>
653658
</p>
654659
<p data-dfn-for="PerformanceResourceTiming">
655660
The <dfn>encodedBodySize</dfn> getter steps are to return
656-
<a>this</a>'s <a data-for="PerformanceResourceTiming">timing
657-
info</a>'s [=fetch timing info/encoded body size=].
661+
<a>this</a>'s <a data-for="PerformanceResourceTiming">resource
662+
info</a>'s [=response body info/encoded size=].
658663
</p>
659664
<p data-dfn-for="PerformanceResourceTiming">
660665
The <dfn>decodedBodySize</dfn> getter steps are to return
661-
<a>this</a>'s <a data-for="PerformanceResourceTiming">timing
662-
info</a>'s [=fetch timing info/decoded body size=].
666+
<a>this</a>'s <a data-for="PerformanceResourceTiming">resource
667+
info</a>'s [=response body info/decoded size=].
663668
</p>
664669
<p data-dfn-for="PerformanceResourceTiming">
665670
The <dfn>transferSize</dfn> getter steps are to perform the following
@@ -681,8 +686,8 @@ <h3>
681686
<li>
682687
<p>
683688
Return <a>this</a>'s <a data-for=
684-
"PerformanceResourceTiming">timing info</a>'s [=fetch timing
685-
info/encoded body size=] plus 300.
689+
"PerformanceResourceTiming">response body info</a>'s [=response body
690+
info/encoded size=] plus 300.
686691
</p>
687692
<p class='note'>
688693
The constant number added to `transferSize` replaces exposing the
@@ -1056,16 +1061,16 @@ <h2>
10561061
<p>
10571062
To <dfn data-export="">mark resource timing</dfn> given a [=/fetch
10581063
timing info=] |timingInfo|, a DOMString |requestedURL|, a DOMString
1059-
|initiatorType| a <a>global object</a> |global|, and a string
1060-
|cacheMode|, perform the following steps:
1064+
|initiatorType| a <a>global object</a> |global|, a string
1065+
|cacheMode|, and a [=/response body info=] |bodyInfo|, perform the following steps:
10611066
</p>
10621067
<ol>
10631068
<li>Create a <a>PerformanceResourceTiming</a> object |entry| in
10641069
|global|'s [=global object/realm=].
10651070
</li>
10661071
<li>
10671072
<a>Setup the resource timing entry</a> for |entry|, given
1068-
|initiatorType|, |requestedURL|, |timingInfo|, and |cacheMode|.
1073+
|initiatorType|, |requestedURL|, |timingInfo|, |cacheMode|, and |bodyInfo|.
10691074
</li>
10701075
<li>
10711076
<a data-cite=
@@ -1082,8 +1087,8 @@ <h2>
10821087
To <dfn data-export="">setup the resource timing entry</dfn> for
10831088
<a>PerformanceResourceTiming</a> |entry| given DOMString
10841089
|initiatorType|, DOMString |requestedURL|, [=/fetch timing info=]
1085-
|timingInfo|, and a DOMString |cacheMode|, perform the following
1086-
steps:
1090+
|timingInfo|, a DOMString |cacheMode|, and a [=response body info=] |bodyInfo|,
1091+
perform the following steps:
10871092
</p>
10881093
<ol>
10891094
<li>Assert that |cacheMode| is the empty string or
@@ -1097,6 +1102,8 @@ <h2>
10971102
</li>
10981103
<li>Set |entry|'s <a data-for="PerformanceResourceTiming">timing
10991104
info</a> to |timingInfo|.
1105+
<li>Set |entry|'s <a data-for="PerformanceResourceTiming">response body info</a>
1106+
to |bodyInfo|.
11001107
</li>
11011108
<li>Set |entry|'s <a data-for="PerformanceResourceTiming">cache
11021109
mode</a> to |cacheMode|.

0 commit comments

Comments
 (0)