Skip to content
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

Merged
merged 5 commits into from
Jan 25, 2023

Conversation

noamr
Copy link
Contributor

@noamr noamr commented Dec 4, 2022

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

chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Dec 4, 2022
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
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Dec 4, 2022
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
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Dec 4, 2022
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
@annevk
Copy link
Member

annevk commented Dec 7, 2022

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.

@noamr
Copy link
Contributor Author

noamr commented Dec 7, 2022

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.
Done

@annevk
Copy link
Member

annevk commented Dec 7, 2022

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.

@noamr
Copy link
Contributor Author

noamr commented Dec 7, 2022

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.

Copy link
Member

@annevk annevk left a 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.
Copy link
Member

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?

chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Dec 11, 2022
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
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Dec 11, 2022
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
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Dec 12, 2022
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
aarongable pushed a commit to chromium/chromium that referenced this pull request Dec 12, 2022
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}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Dec 12, 2022
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}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Dec 12, 2022
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}
BruceDai pushed a commit to BruceDai/wpt that referenced this pull request Dec 13, 2022
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}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Dec 22, 2022
…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
@annevk
Copy link
Member

annevk commented Jan 3, 2023

This needs rebasing on top of #1561 now.

noamr added 3 commits January 3, 2023 11:23
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)
@noamr
Copy link
Contributor Author

noamr commented Jan 3, 2023

This needs rebasing on top of #1561 now.

Done

jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Jan 3, 2023
…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
noamr and others added 2 commits January 3, 2023 11:55
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
Copy link
Member

@annevk annevk left a 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!

@noamr
Copy link
Contributor Author

noamr commented Jan 3, 2023

@emilio, @bdekoz, how do you feel about this for Gecko?
(Webkit doesn't have encoded/decode body sizes for cross-origin resources)

noamr added a commit to web-platform-tests/wpt that referenced this pull request Jan 3, 2023
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 4, 2023
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
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 4, 2023
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
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 4, 2023
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
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 4, 2023
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
aarongable pushed a commit to chromium/chromium that referenced this pull request Jan 11, 2023
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}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 11, 2023
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}
aarongable pushed a commit to chromium/chromium that referenced this pull request Jan 11, 2023
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}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 11, 2023
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
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 11, 2023
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
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 12, 2023
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
aarongable pushed a commit to chromium/chromium that referenced this pull request Jan 12, 2023
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}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 12, 2023
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}
DanielRyanSmith pushed a commit to web-platform-tests/wpt that referenced this pull request Jan 17, 2023
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>
@bdekoz
Copy link

bdekoz commented Jan 19, 2023

This is ok for gecko

@bdekoz
Copy link

bdekoz commented Jan 19, 2023

here is the Moz tracker BZ: https://bugzilla.mozilla.org/show_bug.cgi?id=1811293

moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jan 20, 2023
…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
@noamr
Copy link
Contributor Author

noamr commented Jan 25, 2023

It looks like there's still a number of checkboxes to complete in OP. Otherwise this looks great though, thanks!

Done.

@annevk
Copy link
Member

annevk commented Jan 25, 2023

@noamr can you look into the first set of tests linked? It seems that changeset got reverted.

@noamr
Copy link
Contributor Author

noamr commented Jan 25, 2023

@noamr can you look into the first set of tests linked? It seems that changeset got reverted.

Yea it relanded, so relinked.

@annevk annevk merged commit e1e9567 into whatwg:main Jan 25, 2023
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Jan 25, 2023
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants