Bug 299647

Summary: Add a way to know if a CachedImage is showing a complete frame
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: ImagesAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Simon Fraser (smfr)
Reported 2025-09-26 19:07:04 PDT
LargestContentfulPaint needs to know if an image is showing a fully-decoded frame. For an animated image, this can mean that the entire image is still downloading (so we can't check the status()), but if the current frame is complete, we can count it for LCP. For a single-frame image, "complete" is equivalent to the image download being complete.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-09-26 19:07:16 PDT
Simon Fraser (smfr)
Comment 2 2025-09-26 19:09:57 PDT
EWS
Comment 3 2025-09-27 10:45:01 PDT
Committed 300641@main (0fee98d9aebf): <https://commits.webkit.org/300641@main> Reviewed commits have been landed. Closing PR #51425 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.