| Commit-Queue | +1 |
Hey PH, mind taking a quick look at this?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
LGTM
// A tracked observation can outlive its weak target.Not sure if it's needed, but should the comment here explain why the observation can outlive its target to make it easier for readers in the future?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Adding owners for the two files changed in this CL. This is a sort of follow-up to https://chromium-review.googlesource.com/c/chromium/src/+/7819221 - we continued to get some similar crashes in Edge even after that fix went in, so I re-investigated and made this change. Please take a look when you have the chance, thanks!
Not sure if it's needed, but should the comment here explain why the observation can outlive its target to make it easier for readers in the future?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Avoid null lazy-load observation target during print
LazyLoadMediaObserver::LoadAllImagesAndBlockLoadEvent() assumes each
IntersectionObservation has a live target while loading deferred images
for print.
IntersectionObservation stores its target weakly. If the target is
collected while its observation remains reachable, the print path
dereferences the null target through Element::GetDocument(). Skip
observations whose targets are no longer live.
Add a regression test for a collected target retained by an observation.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |