Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 84e80f88281709ce9d9a5646089ec4f325528791
https://github.com/WebKit/WebKit/commit/84e80f88281709ce9d9a5646089ec4f325528791
Author: Kiet Ho <[email protected]>
Date: 2026-06-26 (Fri, 26 Jun 2026)
Changed paths:
M Source/WebCore/page/IntersectionObserver.cpp
Log Message:
-----------
[intersection-observer] Frame that is not a main frame doesn't necessarily
have a parent
rdar://180368162
https://bugs.webkit.org/show_bug.cgi?id=317691
Reviewed by Simon Fraser.
When traversing up the frame tree, computeClippedRectInRootContentsSpace assumes
that if a frame is not a main frame, then it always has a parent. But crash
reports
indicate that it's possible for non-main frames to not have a parent. Fix this
by
changing computeClippedRectInRootContentsSpace to directly check if the frame
has a parent or not before traversing up.
Tested by existing Intersection Observer test suite.
* Source/WebCore/page/IntersectionObserver.cpp:
(WebCore::computeClippedRectInRootContentsSpace):
Canonical link: https://commits.webkit.org/315930@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications