tor-browser

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

commit 6091c96d557f8cb8d8ba10994e0c7b6730d3687d
parent 3af026ed51bdbb62ff48039e77606cf443b9075a
Author: Norisz Fay <nfay@mozilla.com>
Date:   Mon, 15 Dec 2025 19:35:23 +0200

Revert "Bug 2006110. Skip processing images for LargestContentfulPaint is nothing is going to be done with them. r=emilio" for causing build bustages

This reverts commit 6e92aa7f9db81ab8412ed3355bc1f7d5c9428d91.

Diffstat:
Mdom/performance/LargestContentfulPaint.cpp | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dom/performance/LargestContentfulPaint.cpp b/dom/performance/LargestContentfulPaint.cpp @@ -151,8 +151,9 @@ void LargestContentfulPaint::MaybeProcessImageForElementTiming( return; } - nsPresContext* pc = document->GetPresContext(); - if (!pc || pc->HasStoppedGeneratingLCP()) { + nsPresContext* pc = + aElement->GetPresContext(Element::PresContextFor::eForComposedDoc); + if (!pc) { return; }