-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Body sizes should be CORS rather than TAO protected #1556
Conversation
Instead of relying on the network, count the bytes as they come in and use the sum as the metric, only for service-worker responses. Corresponds to the relevant spec change: https://w3c.github.io/ServiceWorker/#dom-fetchevent-respondwith (search for "encoded size") and to proposed spec change: whatwg/fetch#1556 Bug: 925239 Change-Id: I7d47c4febef61a89128cc50003f9f2058f3c1270
Instead of relying on the network, count the bytes as they come in and use the sum as the metric, only for service-worker responses. Corresponds to the relevant spec change: https://w3c.github.io/ServiceWorker/#dom-fetchevent-respondwith (search for "encoded size") and to proposed spec change: whatwg/fetch#1556 Bug: 925239 Change-Id: I7d47c4febef61a89128cc50003f9f2058f3c1270
Instead of relying on the network, count the bytes as they come in and use the sum as the metric, only for service-worker responses. Corresponds to the relevant spec change: https://w3c.github.io/ServiceWorker/#dom-fetchevent-respondwith (search for "encoded size") and to proposed spec change: whatwg/fetch#1556 Bug: 925239 Change-Id: I7d47c4febef61a89128cc50003f9f2058f3c1270
I think we should use the network error and filtered response concepts here instead. In that we define that a network error's body info is always a new one and the same for both opaque filtered responses. |
|
I meant that we should update the definitions of network error and the two types of opaque responses to override the body info field. That way we don't have to do anything here or other places that might get hold of a response. |
Gotcha I think. Will revise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this looks good. Tiny nit and then this can merge once the checkboxes are done.
fetch.bs
Outdated
@@ -2366,6 +2366,7 @@ known as an <dfn export id=concept-aborted-network-error>aborted network error</ | |||
<p>A <a>network error</a> is a <a for=/>response</a> whose | |||
<a for=response>status</a> is always 0, | |||
<a for=response>status message</a> is always the empty byte sequence, | |||
<a for=response>body info</a> is always a new <a for=/>response body info</a>, | |||
<a for=response>header list</a> is always empty, and | |||
<a for=response>body</a> is always null. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: can we put body info at the end throughout as it's defined last of these fields?
Instead of relying on the network, count the bytes as they come in and use the sum as the metric, only for service-worker responses. Corresponds to the relevant spec change: https://w3c.github.io/ServiceWorker/#dom-fetchevent-respondwith (search for "encoded size") and to proposed spec change: whatwg/fetch#1556 Bug: 925239 Change-Id: I7d47c4febef61a89128cc50003f9f2058f3c1270
Instead of relying on the network, count the bytes as they come in and use the sum as the metric, only for service-worker responses. Corresponds to the relevant spec change: https://w3c.github.io/ServiceWorker/#dom-fetchevent-respondwith (search for "encoded size") and to proposed spec change: whatwg/fetch#1556 Bug: 925239 Change-Id: I7d47c4febef61a89128cc50003f9f2058f3c1270
Instead of relying on the network, count the bytes as they come in and use the sum as the metric, only for service-worker responses. Corresponds to the relevant spec change: https://w3c.github.io/ServiceWorker/#dom-fetchevent-respondwith (search for "encoded size") and to proposed spec change: whatwg/fetch#1556 Bug: 925239 Change-Id: I7d47c4febef61a89128cc50003f9f2058f3c1270
Instead of relying on the network, count the bytes as they come in and use the sum as the metric, only for service-worker responses. Corresponds to the relevant spec change: https://w3c.github.io/ServiceWorker/#dom-fetchevent-respondwith (search for "encoded size") and to proposed spec change: whatwg/fetch#1556 Bug: 925239 Change-Id: I7d47c4febef61a89128cc50003f9f2058f3c1270 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4065971 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Cr-Commit-Position: refs/heads/main@{#1081848}
Instead of relying on the network, count the bytes as they come in and use the sum as the metric, only for service-worker responses. Corresponds to the relevant spec change: https://w3c.github.io/ServiceWorker/#dom-fetchevent-respondwith (search for "encoded size") and to proposed spec change: whatwg/fetch#1556 Bug: 925239 Change-Id: I7d47c4febef61a89128cc50003f9f2058f3c1270 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4065971 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Cr-Commit-Position: refs/heads/main@{#1081848}
Instead of relying on the network, count the bytes as they come in and use the sum as the metric, only for service-worker responses. Corresponds to the relevant spec change: https://w3c.github.io/ServiceWorker/#dom-fetchevent-respondwith (search for "encoded size") and to proposed spec change: whatwg/fetch#1556 Bug: 925239 Change-Id: I7d47c4febef61a89128cc50003f9f2058f3c1270 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4065971 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Cr-Commit-Position: refs/heads/main@{#1081848}
Instead of relying on the network, count the bytes as they come in and use the sum as the metric, only for service-worker responses. Corresponds to the relevant spec change: https://w3c.github.io/ServiceWorker/#dom-fetchevent-respondwith (search for "encoded size") and to proposed spec change: whatwg/fetch#1556 Bug: 925239 Change-Id: I7d47c4febef61a89128cc50003f9f2058f3c1270 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4065971 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Cr-Commit-Position: refs/heads/main@{#1081848}
…ervice-worker responses, a=testonly Automatic update from web-platform-tests Update encoded/decoded body length for service-worker responses Instead of relying on the network, count the bytes as they come in and use the sum as the metric, only for service-worker responses. Corresponds to the relevant spec change: https://w3c.github.io/ServiceWorker/#dom-fetchevent-respondwith (search for "encoded size") and to proposed spec change: whatwg/fetch#1556 Bug: 925239 Change-Id: I7d47c4febef61a89128cc50003f9f2058f3c1270 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4065971 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Cr-Commit-Position: refs/heads/main@{#1081848} -- wpt-commits: 998e292d3e0296e922d002930986a6156733734f wpt-pr: 37257
This needs rebasing on top of #1561 now. |
encoded/decoded body size relate to the resource, not to the timing. Body size of cors-same-origin resources is anyway observable in service workers. This is part of w3c/resource-timing#220 (comment)
Done |
…ervice-worker responses, a=testonly Automatic update from web-platform-tests Update encoded/decoded body length for service-worker responses Instead of relying on the network, count the bytes as they come in and use the sum as the metric, only for service-worker responses. Corresponds to the relevant spec change: https://w3c.github.io/ServiceWorker/#dom-fetchevent-respondwith (search for "encoded size") and to proposed spec change: whatwg/fetch#1556 Bug: 925239 Change-Id: I7d47c4febef61a89128cc50003f9f2058f3c1270 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4065971 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Cr-Commit-Position: refs/heads/main@{#1081848} -- wpt-commits: 998e292d3e0296e922d002930986a6156733734f wpt-pr: 37257
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like there's still a number of checkboxes to complete in OP. Otherwise this looks great though, thanks!
The transferSize delta remains TAO-protected as it measures the fetch rather than the resource. See spec change: whatwg/fetch#1556 Bug: 1404669 Change-Id: I8d6d0e3f8e2dc31597b06f6d7b1e426381463226 Fixes: 1404669
The transferSize delta remains TAO-protected as it measures the fetch rather than the resource. Currently behind a runtime flag, until we discuss this with the RUM community. See spec change: whatwg/fetch#1556 Bug: 1404669 Change-Id: I8d6d0e3f8e2dc31597b06f6d7b1e426381463226 Fixes: 1404669
The transferSize delta remains TAO-protected as it measures the fetch rather than the resource. Currently behind a runtime flag, until we discuss this with the RUM community. See spec change: whatwg/fetch#1556 Bug: 1404669 Change-Id: I8d6d0e3f8e2dc31597b06f6d7b1e426381463226 Fixes: 1404669
The transferSize delta remains TAO-protected as it measures the fetch rather than the resource. Currently behind a runtime flag, until we discuss this with the RUM community. See spec change: whatwg/fetch#1556 Bug: 1404669 Change-Id: I8d6d0e3f8e2dc31597b06f6d7b1e426381463226 Fixes: 1404669
The transferSize delta remains TAO-protected as it measures the fetch rather than the resource. Currently behind a runtime flag, until we discuss this with the RUM community. See spec change: whatwg/fetch#1556 Bug: 1404669 Change-Id: I8d6d0e3f8e2dc31597b06f6d7b1e426381463226 Fixes: 1404669 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4135873 Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Cr-Commit-Position: refs/heads/main@{#1091399}
The transferSize delta remains TAO-protected as it measures the fetch rather than the resource. Currently behind a runtime flag, until we discuss this with the RUM community. See spec change: whatwg/fetch#1556 Bug: 1404669 Change-Id: I8d6d0e3f8e2dc31597b06f6d7b1e426381463226 Fixes: 1404669 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4135873 Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Cr-Commit-Position: refs/heads/main@{#1091399}
This reverts commit 3a8f3fd. Reason for revert: cause tree close: https://ci.chromium.org/ui/p/chromium/builders/ci/linux-cfm-rel/36567/overview Original change's description: > Make body size CORS-protected instead of TAO-protected > > The transferSize delta remains TAO-protected as it measures > the fetch rather than the resource. > > Currently behind a runtime flag, until we discuss this with the > RUM community. > > See spec change: whatwg/fetch#1556 > > Bug: 1404669 > Change-Id: I8d6d0e3f8e2dc31597b06f6d7b1e426381463226 > Fixes: 1404669 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4135873 > Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> > Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1091399} Bug: 1404669 Change-Id: Ieb987fca2038b9c6daa57875a02e7d82ab673cf6 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4156734 Reviewed-by: Tom Lukaszewicz <tluk@google.com> Owners-Override: Tom Lukaszewicz <tluk@google.com> Commit-Queue: Victor Tan <victortan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1091414}
This reverts commit a5609f5e8a2afa6bb60619bbc34a6fbe7167f981. Reason for revert: tree was closed, now it's open again Original change's description: > Revert "Make body size CORS-protected instead of TAO-protected" > > This reverts commit 3a8f3fd8736b1721535af5aa148996a2767079e3. > > Reason for revert: cause tree close: https://ci.chromium.org/ui/p/chromium/builders/ci/linux-cfm-rel/36567/overview > > Original change's description: > > Make body size CORS-protected instead of TAO-protected > > > > The transferSize delta remains TAO-protected as it measures > > the fetch rather than the resource. > > > > Currently behind a runtime flag, until we discuss this with the > > RUM community. > > > > See spec change: whatwg/fetch#1556 > > > > Bug: 1404669 > > Change-Id: I8d6d0e3f8e2dc31597b06f6d7b1e426381463226 > > Fixes: 1404669 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4135873 > > Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> > > Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> > > Cr-Commit-Position: refs/heads/main@{#1091399} > > Bug: 1404669 > Change-Id: Ieb987fca2038b9c6daa57875a02e7d82ab673cf6 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4156734 > Reviewed-by: Tom Lukaszewicz <tluk@google.com> > Owners-Override: Tom Lukaszewicz <tluk@google.com> > Commit-Queue: Victor Tan <victortan@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1091414} Bug: 1404669 Change-Id: I55d4fbc9b69fcc4d676a8cc9f2c8f97a50c8ff8b
This reverts commit a5609f5e8a2afa6bb60619bbc34a6fbe7167f981. Reason for revert: tree was closed Original change's description: > Revert "Make body size CORS-protected instead of TAO-protected" > > This reverts commit 3a8f3fd8736b1721535af5aa148996a2767079e3. > > Reason for revert: cause tree close: https://ci.chromium.org/ui/p/chromium/builders/ci/linux-cfm-rel/36567/overview > > Original change's description: > > Make body size CORS-protected instead of TAO-protected > > > > The transferSize delta remains TAO-protected as it measures > > the fetch rather than the resource. > > > > Currently behind a runtime flag, until we discuss this with the > > RUM community. > > > > See spec change: whatwg/fetch#1556 > > > > Bug: 1404669 > > Change-Id: I8d6d0e3f8e2dc31597b06f6d7b1e426381463226 > > Fixes: 1404669 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4135873 > > Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> > > Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> > > Cr-Commit-Position: refs/heads/main@{#1091399} > > Bug: 1404669 > Change-Id: Ieb987fca2038b9c6daa57875a02e7d82ab673cf6 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4156734 > Reviewed-by: Tom Lukaszewicz <tluk@google.com> > Owners-Override: Tom Lukaszewicz <tluk@google.com> > Commit-Queue: Victor Tan <victortan@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1091414} Bug: 1404669 Change-Id: I55d4fbc9b69fcc4d676a8cc9f2c8f97a50c8ff8b
This reverts commit a5609f5e8a2afa6bb60619bbc34a6fbe7167f981. Reason for revert: tree was closed Original change's description: > Revert "Make body size CORS-protected instead of TAO-protected" > > This reverts commit 3a8f3fd8736b1721535af5aa148996a2767079e3. > > Reason for revert: cause tree close: https://ci.chromium.org/ui/p/chromium/builders/ci/linux-cfm-rel/36567/overview > > Original change's description: > > Make body size CORS-protected instead of TAO-protected > > > > The transferSize delta remains TAO-protected as it measures > > the fetch rather than the resource. > > > > Currently behind a runtime flag, until we discuss this with the > > RUM community. > > > > See spec change: whatwg/fetch#1556 > > > > Bug: 1404669 > > Change-Id: I8d6d0e3f8e2dc31597b06f6d7b1e426381463226 > > Fixes: 1404669 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4135873 > > Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> > > Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> > > Cr-Commit-Position: refs/heads/main@{#1091399} > > Bug: 1404669 > Change-Id: Ieb987fca2038b9c6daa57875a02e7d82ab673cf6 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4156734 > Reviewed-by: Tom Lukaszewicz <tluk@google.com> > Owners-Override: Tom Lukaszewicz <tluk@google.com> > Commit-Queue: Victor Tan <victortan@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1091414} Bug: 1404669 Change-Id: I55d4fbc9b69fcc4d676a8cc9f2c8f97a50c8ff8b
This reverts commit a5609f5. Reason for revert: tree was closed Original change's description: > Revert "Make body size CORS-protected instead of TAO-protected" > > This reverts commit 3a8f3fd. > > Reason for revert: cause tree close: https://ci.chromium.org/ui/p/chromium/builders/ci/linux-cfm-rel/36567/overview > > Original change's description: > > Make body size CORS-protected instead of TAO-protected > > > > The transferSize delta remains TAO-protected as it measures > > the fetch rather than the resource. > > > > Currently behind a runtime flag, until we discuss this with the > > RUM community. > > > > See spec change: whatwg/fetch#1556 > > > > Bug: 1404669 > > Change-Id: I8d6d0e3f8e2dc31597b06f6d7b1e426381463226 > > Fixes: 1404669 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4135873 > > Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> > > Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> > > Cr-Commit-Position: refs/heads/main@{#1091399} > > Bug: 1404669 > Change-Id: Ieb987fca2038b9c6daa57875a02e7d82ab673cf6 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4156734 > Reviewed-by: Tom Lukaszewicz <tluk@google.com> > Owners-Override: Tom Lukaszewicz <tluk@google.com> > Commit-Queue: Victor Tan <victortan@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1091414} Bug: 1404669 Change-Id: I55d4fbc9b69fcc4d676a8cc9f2c8f97a50c8ff8b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4158031 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Cr-Commit-Position: refs/heads/main@{#1091712}
This reverts commit a5609f5e8a2afa6bb60619bbc34a6fbe7167f981. Reason for revert: tree was closed Original change's description: > Revert "Make body size CORS-protected instead of TAO-protected" > > This reverts commit 3a8f3fd8736b1721535af5aa148996a2767079e3. > > Reason for revert: cause tree close: https://ci.chromium.org/ui/p/chromium/builders/ci/linux-cfm-rel/36567/overview > > Original change's description: > > Make body size CORS-protected instead of TAO-protected > > > > The transferSize delta remains TAO-protected as it measures > > the fetch rather than the resource. > > > > Currently behind a runtime flag, until we discuss this with the > > RUM community. > > > > See spec change: whatwg/fetch#1556 > > > > Bug: 1404669 > > Change-Id: I8d6d0e3f8e2dc31597b06f6d7b1e426381463226 > > Fixes: 1404669 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4135873 > > Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> > > Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> > > Cr-Commit-Position: refs/heads/main@{#1091399} > > Bug: 1404669 > Change-Id: Ieb987fca2038b9c6daa57875a02e7d82ab673cf6 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4156734 > Reviewed-by: Tom Lukaszewicz <tluk@google.com> > Owners-Override: Tom Lukaszewicz <tluk@google.com> > Commit-Queue: Victor Tan <victortan@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1091414} Bug: 1404669 Change-Id: I55d4fbc9b69fcc4d676a8cc9f2c8f97a50c8ff8b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4158031 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Cr-Commit-Position: refs/heads/main@{#1091712}
This reverts commit a5609f5e8a2afa6bb60619bbc34a6fbe7167f981. Reason for revert: tree was closed Original change's description: > Revert "Make body size CORS-protected instead of TAO-protected" > > This reverts commit 3a8f3fd8736b1721535af5aa148996a2767079e3. > > Reason for revert: cause tree close: https://ci.chromium.org/ui/p/chromium/builders/ci/linux-cfm-rel/36567/overview > > Original change's description: > > Make body size CORS-protected instead of TAO-protected > > > > The transferSize delta remains TAO-protected as it measures > > the fetch rather than the resource. > > > > Currently behind a runtime flag, until we discuss this with the > > RUM community. > > > > See spec change: whatwg/fetch#1556 > > > > Bug: 1404669 > > Change-Id: I8d6d0e3f8e2dc31597b06f6d7b1e426381463226 > > Fixes: 1404669 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4135873 > > Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> > > Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> > > Cr-Commit-Position: refs/heads/main@{#1091399} > > Bug: 1404669 > Change-Id: Ieb987fca2038b9c6daa57875a02e7d82ab673cf6 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4156734 > Reviewed-by: Tom Lukaszewicz <tluk@google.com> > Owners-Override: Tom Lukaszewicz <tluk@google.com> > Commit-Queue: Victor Tan <victortan@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1091414} Bug: 1404669 Change-Id: I55d4fbc9b69fcc4d676a8cc9f2c8f97a50c8ff8b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4158031 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Cr-Commit-Position: refs/heads/main@{#1091712} Co-authored-by: Noam Rosenthal <nrosenthal@chromium.org>
This is ok for gecko |
here is the Moz tracker BZ: https://bugzilla.mozilla.org/show_bug.cgi?id=1811293 |
…stead of TAO-protected", a=testonly Automatic update from web-platform-tests Reland "Make body size CORS-protected instead of TAO-protected" (#37884) This reverts commit a5609f5e8a2afa6bb60619bbc34a6fbe7167f981. Reason for revert: tree was closed Original change's description: > Revert "Make body size CORS-protected instead of TAO-protected" > > This reverts commit 3a8f3fd8736b1721535af5aa148996a2767079e3. > > Reason for revert: cause tree close: https://ci.chromium.org/ui/p/chromium/builders/ci/linux-cfm-rel/36567/overview > > Original change's description: > > Make body size CORS-protected instead of TAO-protected > > > > The transferSize delta remains TAO-protected as it measures > > the fetch rather than the resource. > > > > Currently behind a runtime flag, until we discuss this with the > > RUM community. > > > > See spec change: whatwg/fetch#1556 > > > > Bug: 1404669 > > Change-Id: I8d6d0e3f8e2dc31597b06f6d7b1e426381463226 > > Fixes: 1404669 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4135873 > > Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> > > Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> > > Cr-Commit-Position: refs/heads/main@{#1091399} > > Bug: 1404669 > Change-Id: Ieb987fca2038b9c6daa57875a02e7d82ab673cf6 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4156734 > Reviewed-by: Tom Lukaszewicz <tluk@google.com> > Owners-Override: Tom Lukaszewicz <tluk@google.com> > Commit-Queue: Victor Tan <victortan@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1091414} Bug: 1404669 Change-Id: I55d4fbc9b69fcc4d676a8cc9f2c8f97a50c8ff8b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4158031 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Cr-Commit-Position: refs/heads/main@{#1091712} Co-authored-by: Noam Rosenthal <nrosenthal@chromium.org> -- wpt-commits: 8547b57c0e2de466d5e8524a65ff02b531a5775a wpt-pr: 37884
Done. |
@noamr can you look into the first set of tests linked? It seems that changeset got reverted. |
Yea it relanded, so relinked. |
…stead of TAO-protected", a=testonly Automatic update from web-platform-tests Reland "Make body size CORS-protected instead of TAO-protected" (#37884) This reverts commit a5609f5e8a2afa6bb60619bbc34a6fbe7167f981. Reason for revert: tree was closed Original change's description: > Revert "Make body size CORS-protected instead of TAO-protected" > > This reverts commit 3a8f3fd8736b1721535af5aa148996a2767079e3. > > Reason for revert: cause tree close: https://ci.chromium.org/ui/p/chromium/builders/ci/linux-cfm-rel/36567/overview > > Original change's description: > > Make body size CORS-protected instead of TAO-protected > > > > The transferSize delta remains TAO-protected as it measures > > the fetch rather than the resource. > > > > Currently behind a runtime flag, until we discuss this with the > > RUM community. > > > > See spec change: whatwg/fetch#1556 > > > > Bug: 1404669 > > Change-Id: I8d6d0e3f8e2dc31597b06f6d7b1e426381463226 > > Fixes: 1404669 > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4135873 > > Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> > > Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> > > Cr-Commit-Position: refs/heads/main@{#1091399} > > Bug: 1404669 > Change-Id: Ieb987fca2038b9c6daa57875a02e7d82ab673cf6 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4156734 > Reviewed-by: Tom Lukaszewicz <tluk@google.com> > Owners-Override: Tom Lukaszewicz <tluk@google.com> > Commit-Queue: Victor Tan <victortan@chromium.org> > Cr-Commit-Position: refs/heads/main@{#1091414} Bug: 1404669 Change-Id: I55d4fbc9b69fcc4d676a8cc9f2c8f97a50c8ff8b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4158031 Commit-Queue: Noam Rosenthal <nrosenthal@chromium.org> Reviewed-by: Yoav Weiss <yoavweiss@chromium.org> Cr-Commit-Position: refs/heads/main@{#1091712} Co-authored-by: Noam Rosenthal <nrosenthal@chromium.org> -- wpt-commits: 8547b57c0e2de466d5e8524a65ff02b531a5775a wpt-pr: 37884
encoded/decoded body size relate to the resource, not to the timing. Body size of cors-same-origin resources is anyway observable in service workers.
This is part of
w3c/resource-timing#220 (comment)
(See WHATWG Working Mode: Changes for more details.)
Preview | Diff