Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f5d64cbd34b3b65c181a27564c6c7fef3031d257
https://github.com/WebKit/WebKit/commit/f5d64cbd34b3b65c181a27564c6c7fef3031d257
Author: Ryosuke Niwa <[email protected]>
Date: 2025-12-05 (Fri, 05 Dec 2025)
Changed paths:
M Source/WebCore/dom/EventPath.cpp
M Tools/TestWebKitAPI/Tests/WebKitCocoa/UserContentController.mm
Log Message:
-----------
Event.composedPath should never contain nodes from UA shadow tree
https://bugs.webkit.org/show_bug.cgi?id=303588
Reviewed by Chris Dumez and Sihui Liu.
Event.prototype.composedPath should never include nodes from user-agent shadow
trees
even when closed shadow trees are treated as open for the given content world.
Test: Tools/TestWebKitAPI/Tests/WebKitCocoa/UserContentController.mm
* Source/WebCore/dom/EventPath.cpp:
(WebCore::EventPath::computePathTreatingAllShadowRootsAsOpen const):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/UserContentController.mm:
(TEST(WKUserContentController, AllowAccessToClosedShadowRoots)):
Canonical link: https://commits.webkit.org/304022@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications