Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9cc00aab3dc8e52d29eb3227f4096658cb2b873a
https://github.com/WebKit/WebKit/commit/9cc00aab3dc8e52d29eb3227f4096658cb2b873a
Author: Antoine Quint <[email protected]>
Date: 2026-04-14 (Tue, 14 Apr 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/scroll-animations/crashtests/effect-target-set-to-null.html
M
Source/WebCore/style/values/primitives/StyleLengthWrapper+DeprecatedCSSValueConversion.cpp
Log Message:
-----------
[scroll-animations] null deref under `WebAnimation::range()` when a
scroll-driven animation has no effect target
https://bugs.webkit.org/show_bug.cgi?id=312263
rdar://174738722
Reviewed by Anne van Kesteren.
Ensure the calls to `Style::deprecatedToStyleFromCSSValue()` from
`WebAnimation::range()` run an early
check on whether the context element is defined.
Test:
imported/w3c/web-platform-tests/scroll-animations/crashtests/effect-target-set-to-null.html
*
LayoutTests/imported/w3c/web-platform-tests/scroll-animations/crashtests/effect-target-set-to-null.html:
Added.
*
Source/WebCore/style/values/primitives/StyleLengthWrapper+DeprecatedCSSValueConversion.cpp:
(WebCore::Style::deprecatedLengthConversionCreateCSSToLengthConversionData):
Canonical link: https://commits.webkit.org/311262@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications