[webkit-changes] [WebKit/WebKit] 9b2b18: Nullptr crash under CustomPropertyRegistry::regist...
Antti Koivisto
noreply at github.com
Sun Jan 22 09:31:28 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9b2b18b8126202d1797a448492781b9242d3ba77
https://github.com/WebKit/WebKit/commit/9b2b18b8126202d1797a448492781b9242d3ba77
Author: Antti Koivisto <antti at apple.com>
Date: 2023-01-22 (Sun, 22 Jan 2023)
Changed paths:
A LayoutTests/fast/css/at-property-registration-crash-expected.txt
A LayoutTests/fast/css/at-property-registration-crash.html
M Source/WebCore/style/CustomPropertyRegistry.cpp
Log Message:
-----------
Nullptr crash under CustomPropertyRegistry::registerFromStylesheet
https://bugs.webkit.org/show_bug.cgi?id=250981
rdar://104474736
Reviewed by Alan Baradlay.
* LayoutTests/fast/css/at-property-registration-crash-expected.txt: Added.
* LayoutTests/fast/css/at-property-registration-crash.html: Added.
* Source/WebCore/style/CustomPropertyRegistry.cpp:
(WebCore::Style::CustomPropertyRegistry::registerFromStylesheet):
Use the default style instead of getting the root style from the style resolver.
It might not exist yet and is not needed to resolve computationally independent values.
Canonical link: https://commits.webkit.org/259188@main
More information about the webkit-changes
mailing list