commit 6e92aa7f9db81ab8412ed3355bc1f7d5c9428d91 parent 90e25733fe8653eeb8cf8176585c573e6f98c5db Author: Timothy Nikkel <tnikkel@gmail.com> Date: Mon, 15 Dec 2025 16:03:55 +0000 Bug 2006110. Skip processing images for LargestContentfulPaint is nothing is going to be done with them. r=emilio Differential Revision: https://phabricator.services.mozilla.com/D276472 Diffstat:
| M | dom/performance/LargestContentfulPaint.cpp | | | 5 | ++--- |
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dom/performance/LargestContentfulPaint.cpp b/dom/performance/LargestContentfulPaint.cpp @@ -151,9 +151,8 @@ void LargestContentfulPaint::MaybeProcessImageForElementTiming( return; } - nsPresContext* pc = - aElement->GetPresContext(Element::PresContextFor::eForComposedDoc); - if (!pc) { + nsPresContext* pc = document->GetPresContext(); + if (!pc || pc->HasStoppedGeneratingLCP()) { return; }