Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6bd49ed6463b56a0ddf86b11d9f2ef5e4183acc7
https://github.com/WebKit/WebKit/commit/6bd49ed6463b56a0ddf86b11d9f2ef5e4183acc7
Author: Ryosuke Niwa <[email protected]>
Date: 2026-05-15 (Fri, 15 May 2026)
Changed paths:
A
LayoutTests/fast/shadow-dom/style-invalidation-slotted-element-with-author-shadow-root-crash-expected.txt
A
LayoutTests/fast/shadow-dom/style-invalidation-slotted-element-with-author-shadow-root-crash.html
M Source/WebCore/dom/Element.cpp
Log Message:
-----------
ASSERTION FAILED: !shadowRoot() || shadowRoot()->mode() ==
ShadowRootMode::UserAgent
https://bugs.webkit.org/show_bug.cgi?id=314791
Reviewed by Alan Baradlay.
Some callers of userAgentShadowRoot were expecting the function to check shadow
root's
type and return nullptr when it's not an user-agent shadow root. Do that
instead of
merely asserting in debug builds.
Test:
fast/shadow-dom/style-invalidation-slotted-element-with-author-shadow-root-crash.html
*
LayoutTests/fast/shadow-dom/style-invalidation-slotted-element-with-author-shadow-root-crash-expected.txt:
Added.
*
LayoutTests/fast/shadow-dom/style-invalidation-slotted-element-with-author-shadow-root-crash.html:
Added.
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::userAgentShadowRoot const):
Canonical link: https://commits.webkit.org/313334@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications