First-paint-equals-lcp-text test on LCP Web Platform Tests is failing intermittently
Categories
(Core :: DOM: Performance APIs, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox145 | --- | fixed |
People
(Reporter: jlink, Assigned: canova)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The "first-paint-equals-lcp-text" LCP WPT test is currently failing with the assert " !EQ(64, 52)".
Updated•9 months ago
|
| Assignee | ||
Comment 1•8 months ago
|
||
It looks like we don't use the same timestamp for the LCP and FCP entries. The current spec implements them in a way that they share the same timestamp. Writing a patch that makes this part more spec compliant.
| Assignee | ||
Comment 2•8 months ago
|
||
FCP and LCP were using different timestamps for the same paint. FCP used
RefreshDriver()->MostRecentRefresh() (tick start time) while LCP used
TimeStamp::Now() captured in the function, causing LCP to be reported
differently compared to FCP.
Both metrics now capture TimeStamp::Now() once and share it. This matches
the Paint Timing spec which says to capture "rendering update end time"
when mark paint timing runs, not reuse the tick start timestamp:
https://w3c.github.io/paint-timing/#mark-paint-timing
Updated•8 months ago
|
Backed out for causing wpt failures @fcp-ensure-update-the-rendering-step.html.
| Assignee | ||
Comment 6•8 months ago
|
||
It looks like the failing wpt test /paint-timing/fcp-only/fcp-ensure-update-the-rendering-step.html was never upstreamed:
The PR was closed before merging due to Chrome failures: https://github.com/web-platform-tests/wpt/pull/25578
And if you look at the wpt repo, there is no test with that name: https://github.com/search?q=repo%3Aweb-platform-tests%2Fwpt%20fcp-ensure-update-the-rendering-step.html&type=code
I also run the test in Chrome, and Chrome also fails consistently. This is because the test was actually asserting the old Firefox behavior that was not spec compliant. We should just remove that test instead.
Comment 8•8 months ago
|
||
| bugherder | ||
Updated•8 months ago
|
Updated•8 months ago
|
Description
•