Add content-type to resource-timing#341
Conversation
|
I was trying to spec this out keeping in mind, the points mentioning not to reflect the header directly and only a set of relevant MIME types.
|
|
@abinpaul1 - can we just reflect the MIME type's essensce? |
|
Why is the full MIME type string not reflected? I couldn't find any reasoning in the explainer at https://github.com/abinpaul1/resource-timing/blob/explainer-content-type/Explainers/Content-Type.md#content-type-values. |
|
During the WG call when this was discussed, a concern was raised regarding reflecting the exact same value returned by server. |
|
I believe the concerns are related to w3c/server-timing#89 and are planned to be discussed at TPAC. |
yoavweiss
left a comment
There was a problem hiding this comment.
LGTM once the Fetch PR lands
This CL introduces a contentType field to Performance Resource Timing object. This field is behind a Runtime Enabled Flag. Resource Timing PR : w3c/resource-timing#341 Fetch PR : whatwg/fetch#1481 Bug:1366706 Change-Id: If4c92ef96d74e3ddbb71420ac61dbea4bfa1163b
This CL introduces a contentType field to Performance Resource Timing object. This field is behind a Runtime Enabled Flag. Resource Timing PR : w3c/resource-timing#341 Fetch PR : whatwg/fetch#1481 Bug: 1366706 Change-Id: If4c92ef96d74e3ddbb71420ac61dbea4bfa1163b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3916841 Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Commit-Queue: Abin Paul <abin.paul1@gmail.com> Cr-Commit-Position: refs/heads/main@{#1063289}
This CL introduces a contentType field to Performance Resource Timing object. This field is behind a Runtime Enabled Flag. Resource Timing PR : w3c/resource-timing#341 Fetch PR : whatwg/fetch#1481 Bug: 1366706 Change-Id: If4c92ef96d74e3ddbb71420ac61dbea4bfa1163b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3916841 Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Commit-Queue: Abin Paul <abin.paul1@gmail.com> Cr-Commit-Position: refs/heads/main@{#1063289}
This CL introduces a contentType field to Performance Resource Timing object. This field is behind a Runtime Enabled Flag. Resource Timing PR : w3c/resource-timing#341 Fetch PR : whatwg/fetch#1481 Bug: 1366706 Change-Id: If4c92ef96d74e3ddbb71420ac61dbea4bfa1163b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3916841 Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Commit-Queue: Abin Paul <abin.paul1@gmail.com> Cr-Commit-Position: refs/heads/main@{#1063289}
…iming, a=testonly Automatic update from web-platform-tests Add content-type to PerformanceResourceTiming This CL introduces a contentType field to Performance Resource Timing object. This field is behind a Runtime Enabled Flag. Resource Timing PR : w3c/resource-timing#341 Fetch PR : whatwg/fetch#1481 Bug: 1366706 Change-Id: If4c92ef96d74e3ddbb71420ac61dbea4bfa1163b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3916841 Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Commit-Queue: Abin Paul <abin.paul1@gmail.com> Cr-Commit-Position: refs/heads/main@{#1063289} -- wpt-commits: 4c8e480994182b5cdc60f5c01ebf208df70ec73e wpt-pr: 36059
…iming, a=testonly Automatic update from web-platform-tests Add content-type to PerformanceResourceTiming This CL introduces a contentType field to Performance Resource Timing object. This field is behind a Runtime Enabled Flag. Resource Timing PR : w3c/resource-timing#341 Fetch PR : whatwg/fetch#1481 Bug: 1366706 Change-Id: If4c92ef96d74e3ddbb71420ac61dbea4bfa1163b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3916841 Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Commit-Queue: Abin Paul <abin.paul1@gmail.com> Cr-Commit-Position: refs/heads/main@{#1063289} -- wpt-commits: 4c8e480994182b5cdc60f5c01ebf208df70ec73e wpt-pr: 36059
|
Is there something blocking this PR from landing? |
|
This is waiting on the Fetch PR to land. |
This defines the content type field as a minimized version of the response's parsed Content-Type header, to give web developers enough information to distinguish responses, but not enough to make it an additional communication channel. This feature will be used by Resource Timing as per w3c/resource-timing#341. Tests: ...
This defines the content type field as a minimized version of the response's parsed Content-Type header, to give web developers enough information to distinguish responses, but not enough to make it an additional communication channel. This feature will be used by Resource Timing as per w3c/resource-timing#341. Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
…iming, a=testonly Automatic update from web-platform-tests Add content-type to PerformanceResourceTiming This CL introduces a contentType field to Performance Resource Timing object. This field is behind a Runtime Enabled Flag. Resource Timing PR : w3c/resource-timing#341 Fetch PR : whatwg/fetch#1481 Bug: 1366706 Change-Id: If4c92ef96d74e3ddbb71420ac61dbea4bfa1163b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3916841 Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Commit-Queue: Abin Paul <abin.paul1@gmail.com> Cr-Commit-Position: refs/heads/main@{#1063289} -- wpt-commits: 4c8e480994182b5cdc60f5c01ebf208df70ec73e wpt-pr: 36059
Introducing Content type. (#203)
Fetch changes : whatwg/fetch#1481
Explainer : https://github.com/abinpaul1/resource-timing/blob/explainer-content-type/Explainers/Content-Type.md
💥 Error: Server Error 💥
PR Preview failed to build. (Last tried on May 8, 2023, 11:28 AM UTC).
More
If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.