Closed Bug 1783068 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 35327 - Set encoded_data_length_ in ResourceResponse to 0.

Categories

(Core :: Performance, task, P4)

task

Tracking

()

RESOLVED FIXED
106 Branch
Performance Impact none
Tracking Status
firefox106 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 35327 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/35327
Details from upstream follow.

Hao Liu <haoliuk@chromium.org> wrote:

Set encoded_data_length_ in ResourceResponse to 0.

Currently the transferSize in resource timing is non-0 in case of resource being
loaded from mem cache, which is incorrect according to the spec. The transferSize is
ultimately conditioned on encoded_data_length_ in ResourceResponse. Setting this value
to 0 without changing other logic can fix the issue.

Bug: 1262896
Change-Id: Ia85e3d0f821cdd2e5e8644dec8ff34a2db4e0822
Reviewed-on: https://chromium-review.googlesource.com/3780454
WPT-Export-Revision: edc17ff721d2a4f6ee543c2603aa3c7c9aba5ed8

Component: web-platform-tests → Performance
Product: Testing → Core
Component: Performance → DOM: Performance
Component: DOM: Performance → Performance

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS: 1

Chrome

OK : 1
FAIL: 1

Safari

OK : 1
FAIL: 1

Links

GitHub PR Head
GitHub PR Base

Performance Impact: --- → none
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/40500d272690 [wpt PR 35327] - Set encoded_data_length_ in ResourceResponse to 0., a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.