Closed Bug 1795086 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 36166 - Initialize cache_state at navigation timing instantiation

Categories

(Core :: DOM: Performance APIs, task, P4)

task

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Hao Liu <haoliuk@chromium.org> wrote:

Initialize cache_state at navigation timing instantiation

Currently the transfer size of navigation timing entries is not being properly set based on the entry's cache state, always being set as if the resource was fetched from the network, even when cached. This is a result of the fact that the transferSize depends on PerformanceResourceTiming::cache_state_, which is not initialized for navigation timing, and hence always takes the default value. This CL fixes that by passing in the right cache state value when navigation timing entries are created.

Bug: 1262896
Change-Id: I290d97254bed846331549a3ff96c7c3e6502230d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3842449
Reviewed-by: Yoav Weiss \<yoavweiss@chromium.org>
Reviewed-by: Bo Liu \<boliu@chromium.org>
Commit-Queue: Hao Liu \<haoliuk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1058724}

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

CI Results

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

Total 2 tests and 1 subtests

Status Summary

Firefox

OK : 2
FAIL : 2

Chrome

OK : 2
FAIL : 2

Safari

OK : 1
FAIL : 1
TIMEOUT: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/047c93ea434b [wpt PR 36166] - Initialize cache_state at navigation timing instantiation, a=testonly https://hg.mozilla.org/integration/autoland/rev/7d6608d13b70 [wpt PR 36166] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
You need to log in before you can comment on or make changes to this bug.