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

[resource-timing] Add a test for encodedBodySize with no Content-Length header #27952

Closed
noamr opened this issue Mar 9, 2021 · 0 comments · Fixed by #27955
Closed

[resource-timing] Add a test for encodedBodySize with no Content-Length header #27952

noamr opened this issue Mar 9, 2021 · 0 comments · Fixed by #27955

Comments

@noamr
Copy link
Contributor

noamr commented Mar 9, 2021

According to the resource timing spec, encodedBodySize should return the actual size of the body, and not rely on the Content-Length header. But there is no test to that effect, as all the tests rely on static resources.

There should be a test that ensures the correct encodedBodySize for this case.

https://w3c.github.io/resource-timing/#dom-performanceresourcetiming-encodedbodysize

See whatwg/fetch#1185

noamr added a commit that referenced this issue Mar 9, 2021
Added tests for different scenarios of `Content-Length`
header and how it affects `encodedBodySize`.

Closes #27952
noamr added a commit that referenced this issue Mar 9, 2021
Added tests for different scenarios of `Content-Length`
header and how it affects `encodedBodySize`.

Closes #27952
noamr added a commit that referenced this issue Mar 10, 2021
Added tests for different scenarios of `Content-Length`
header and how it affects `encodedBodySize`.

Closes #27952
noamr added a commit that referenced this issue Mar 10, 2021
Added tests for different scenarios of `Content-Length`
header and how it affects `encodedBodySize`.

Closes #27952
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this issue Mar 19, 2021
…BodySize, a=testonly

Automatic update from web-platform-tests
[Resource-Timing] content-length/encodedBodySize (#27955)

Added tests for different scenarios of `Content-Length`
header and how it affects `encodedBodySize`.

Closes web-platform-tests/wpt#27952
--

wpt-commits: a0c6344f36cf8079943523314cfeac959e24dea3
wpt-pr: 27955
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants