Closed Bug 1991587 Opened 9 months ago Closed 8 months ago

First-paint-equals-lcp-text test on LCP Web Platform Tests is failing intermittently

Categories

(Core :: DOM: Performance APIs, defect, P3)

defect

Tracking

()

RESOLVED FIXED
145 Branch
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)".

Blocks: 1991588
No longer blocks: 1991588
Severity: -- → S3
Priority: -- → P3

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.

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

Assignee: nobody → canaltinova
Status: NEW → ASSIGNED
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/746419bb1939 https://hg.mozilla.org/integration/autoland/rev/ab31d3b513d2 Revert "Bug 1991587 - Use consistent timestamp for FCP and LCP entries r=jlink,smaug" for causing wpt failures @fcp-ensure-update-the-rendering-step.html.

Backed out for causing wpt failures @fcp-ensure-update-the-rendering-step.html.

Flags: needinfo?(canaltinova)

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.

Flags: needinfo?(canaltinova)
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch
Failed to create upstream wpt PR due to merge conflicts. This requires fixup from a wpt sync admin.
Flags: needinfo?(james)
Flags: needinfo?(aborovova)
Flags: needinfo?(james)
Flags: needinfo?(aborovova)
QA Whiteboard: [qa-triage-done-c146/b145]
Regressions: 1994367
Regressions: 1994723
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: