Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4b97014ab4bea4fca336424d0b19e4b783ce2ee6
https://github.com/WebKit/WebKit/commit/4b97014ab4bea4fca336424d0b19e4b783ce2ee6
Author: Kristian Monsen <[email protected]>
Date: 2026-05-03 (Sun, 03 May 2026)
Changed paths:
A
LayoutTests/fast/css/variables/dashed-function-result-token-lifetime-expected.txt
A LayoutTests/fast/css/variables/dashed-function-result-token-lifetime.html
M Source/WebCore/style/StyleSubstitutionResolver.cpp
M Source/WebCore/style/StyleSubstitutionResolver.h
Log Message:
-----------
Fix ASAN crash in CSSVariableData
https://bugs.webkit.org/show_bug.cgi?id=313848
rdar://174419283
Reviewed by David Kilzer.
Keep the resolved CustomProperty alive in m_intermediateCustomProperties until
substitute() has constructed the new CSSVariableData, mirroring the existing
m_intermediateTokenStrings mechanism used for attr() tokenizer output.
*
LayoutTests/fast/css/variables/dashed-function-result-token-lifetime-expected.txt:
Added.
* LayoutTests/fast/css/variables/dashed-function-result-token-lifetime.html:
Added.
* Source/WebCore/style/StyleSubstitutionResolver.cpp:
(WebCore::Style::SubstitutionResolver::substituteDashedFunction):
(WebCore::Style::SubstitutionResolver::substitute):
* Source/WebCore/style/StyleSubstitutionResolver.h:
Canonical link: https://commits.webkit.org/312494@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications