From 823845a58c96fe994fe2393f9f543e1c27045180 Mon Sep 17 00:00:00 2001 From: Jxck Date: Mon, 25 Mar 2024 17:14:07 +0900 Subject: [PATCH] Pass in Content-Encoding to resource-timing --- fetch.bs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/fetch.bs b/fetch.bs index 58579420..b1096f16 100644 --- a/fetch.bs +++ b/fetch.bs @@ -369,6 +369,8 @@ following items: [[RESOURCE-TIMING]] [[NAVIGATION-TIMING]]
A number.
content type (default the empty string)
An ASCII string. +
content encoding (default the empty string) +
An ASCII string.
@@ -4816,7 +4818,17 @@ steps:
  • If mimeType is not failure, then set bodyInfo's content type to the result of minimizing a supported MIME type given mimeType. - + +

  • Let contentEncoding be the result of + extracting a MIME type from response's + header list. + +

  • Let contentEncodings be the result of extracting header list values given + `Content-Encoding` and response's header list. + +

  • If contentEncoding is not failure, then set bodyInfo's + content encoding to contentEncoding. +

  • If fetchParams's request's initiator type is non-null, then mark resource timing given