tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 746419bb19390abe24abd56790b313efa48cddbe
parent 282c9989c4d855c89a77119184db7c8dbed505f0
Author: agoloman <agoloman@mozilla.com>
Date:   Wed,  8 Oct 2025 04:10:17 +0300

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.

This reverts commit fe854316afdeb03d39a09b5061f00ed0047d6a0e.

Diffstat:
Mlayout/base/nsPresContext.cpp | 2+-
Atesting/web-platform/meta/largest-contentful-paint/first-paint-equals-lcp-text.html.ini | 5+++++
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/layout/base/nsPresContext.cpp b/layout/base/nsPresContext.cpp @@ -2760,7 +2760,7 @@ void nsPresContext::NotifyContentfulPaint() { "We should only notify contentful paint during refresh " "driver ticks"); if (!perf->HadFCPTimingEntry()) { - TimeStamp nowTime = mMarkPaintTimingStart; + TimeStamp nowTime = rootPresContext->RefreshDriver()->MostRecentRefresh(); MOZ_ASSERT(!nowTime.IsNull(), "Most recent refresh timestamp should exist since we are in " "a refresh driver tick"); diff --git a/testing/web-platform/meta/largest-contentful-paint/first-paint-equals-lcp-text.html.ini b/testing/web-platform/meta/largest-contentful-paint/first-paint-equals-lcp-text.html.ini @@ -0,0 +1,5 @@ +[first-paint-equals-lcp-text.html] + expected: + if (os == "android") and fission: [OK, TIMEOUT] + [FCP and LCP are the same when there is a single text element in the page.] + expected: FAIL