Skip to content

Commit 43ddcf7

Browse files
guohuideng2024Guohui Dengannevk
authored
Expose a filtered content-encoding value to resource timing (#411)
Add text to specify that resourceTiming exposes the new field `content-encoding` in `response body info`. * Add contentEncoding to resource timing interface. * contentEncoding must be filtered before being reported. * improve text. * Add updated details on how contentEncoding should be filtered. * Fix and improve contentEncoding steps. Also applied an improvement at "transferSize". * Move the "note" to informative note. * if codings[0] is empty string It should be returned. * Update this PR accoridng to the latest fetch spec. * Remove some superfluous words Co-authored-by: Anne van Kesteren <[email protected]> --------- Co-authored-by: Guohui Deng <[email protected]> Co-authored-by: Anne van Kesteren <[email protected]>
1 parent 3d8f933 commit 43ddcf7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

index.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ <h3>
376376
readonly attribute unsigned short responseStatus;
377377
readonly attribute RenderBlockingStatusType renderBlockingStatus;
378378
readonly attribute DOMString contentType;
379+
readonly attribute DOMString contentEncoding;
379380
[Default] object toJSON();
380381
};
381382
</pre>
@@ -667,8 +668,7 @@ <h3>
667668
info</a>'s [=response body info/decoded size=].
668669
</p>
669670
<p data-dfn-for="PerformanceResourceTiming">
670-
The <dfn>transferSize</dfn> getter steps are to perform the following
671-
steps:
671+
The <dfn>transferSize</dfn> getter steps are:
672672
</p>
673673
<ol>
674674
<li>
@@ -715,6 +715,11 @@ <h3>
715715
<a data-for="PerformanceResourceTiming">resource info</a>'s
716716
[=response body info/content type=].
717717
</p>
718+
<p data-dfn-for="PerformanceResourceTiming">
719+
The <dfn>contentEncoding</dfn> getter steps are to return
720+
<a>this</a>'s <a data-for="PerformanceResourceTiming">resource info
721+
</a>'s [=response body info/content encoding=].
722+
</p>
718723
<p data-dfn-for="PerformanceResourceTiming">
719724
The <dfn>renderBlockingStatus</dfn> getter steps are to return
720725
<a data-link-for="RenderBlockingStatusType">blocking</a> if

0 commit comments

Comments
 (0)