Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f7a8a5c0476af3f6349707dad1fd026c80eaf763
https://github.com/WebKit/WebKit/commit/f7a8a5c0476af3f6349707dad1fd026c80eaf763
Author: Devin Rousso <[email protected]>
Date: 2026-06-06 (Sat, 06 Jun 2026)
Changed paths:
A LayoutTests/fast/dom/pseudo-element-hidePopover-then-crash-expected.txt
A LayoutTests/fast/dom/pseudo-element-hidePopover-then-crash.html
M Source/WebCore/style/AnchorPositionEvaluator.cpp
Log Message:
-----------
[css-anchor-position-1] REGRESSION(311053@main): crash hiding a popover whose
::after pseudo-element inherits position-anchor and position-area
https://bugs.webkit.org/show_bug.cgi?id=316441
Reviewed by Kiet Ho.
* Source/WebCore/style/AnchorPositionEvaluator.cpp:
(WebCore::Style::AnchorPositionEvaluator::makeAnchorPositionedForAnchorMap):
Just because the `Styleable` (i.e. `Element`) exists doesn't guarantee that a
psuedo-element for it exists, so check that before trying to use it.
* LayoutTests/fast/dom/pseudo-element-hidePopover-then-crash.html: Added.
* LayoutTests/fast/dom/pseudo-element-hidePopover-then-crash-expected.txt:
Added.
Canonical link: https://commits.webkit.org/314698@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications