Navigation timing shows no time to first byte when a navigation waits for an in-flight speculation-rules prefetch
Categories
(Core :: Networking, defect, P3)
Tracking
()
| 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
Updated•29 days ago
|
| Assignee | ||
Comment 1•24 days ago
|
||
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.
Comment 3•17 days ago
|
||
| bugherder | ||
Updated•2 days ago
|
Description
•