Closed Bug 2087664 Opened 29 days ago Closed 17 days ago

Navigation timing shows no time to first byte when a navigation waits for an in-flight speculation-rules prefetch

Categories

(Core :: Networking, defect, P3)

defect

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: acreskey, Assigned: acreskey)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged][fxpe])

Attachments

(1 external file)

When a navigation starts while a matching speculation-rules prefetch is still in flight, it now waits for the prefetch and is served from it (bug 2071485). The navigation timing entry then reports responseStart only 0 to 1 ms after requestStart, even though the response took about 0.5 s more to arrive after the navigation started.

speculation-rules/prefetch/navigation-timing-requestStart-responseStart.https.html?include=waitingForResponse prefetches a page that takes 3 s to respond, navigates after 2.5 s, and expects responseStart to be more than 100 ms after requestStart. It fails on every platform:

assert_greater_than: responseStart must be > 100 ms after requestStart expected a number greater than 100 but got 0

Navigation timing showed no time to first byte because cacheReadStart was never set on cache hits and did not reflect when the prefetched response became available.

See Also: → 2091750
Pushed by acreskey@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5413ff281859 https://hg.mozilla.org/integration/autoland/rev/2b68ea1d57dc Include the prefetch wait in navigation timing for navigations served from an in-flight prefetch. r=sunil,necko-reviewers,valentin
Status: NEW → RESOLVED
Closed: 17 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: