Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c179521d89edddfe5f1ec2cb3c2b23bdf9701ff9
      
https://github.com/WebKit/WebKit/commit/c179521d89edddfe5f1ec2cb3c2b23bdf9701ff9
  Author: Ryosuke Niwa <[email protected]>
  Date:   2025-06-03 (Tue, 03 Jun 2025)

  Changed paths:
    M Source/WebCore/dom/Event.cpp
    M Source/WebCore/dom/Event.h
    M Source/WebCore/dom/Event.idl
    M Source/WebCore/dom/EventPath.cpp
    M Source/WebCore/dom/EventPath.h
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/UserContentController.mm

  Log Message:
  -----------
  Event::composedPath should include closed shadow roots when the DOM wrapper 
world is allowed access
https://bugs.webkit.org/show_bug.cgi?id=293915

Reviewed by Wenson Hsieh.

When a DOM wrapper world has the option to allow access to closed shadow roots, 
Event::composedPath
should include closed shadow roots in its results. To implement this new 
behavior, the function now
takes a lexical global object and calls computePathTreatingAllShadowRootsAsOpen 
when the flag is set.

* Source/WebCore/dom/Event.cpp:
(WebCore::Event::composedPath const):
* Source/WebCore/dom/Event.h:
* Source/WebCore/dom/Event.idl:
* Source/WebCore/dom/EventPath.cpp:
(WebCore::EventPath::computePathTreatingAllShadowRootsAsOpen const):
* Source/WebCore/dom/EventPath.h:
* Tools/TestWebKitAPI/Tests/WebKitCocoa/UserContentController.mm:
(TEST(WKUserContentController, AllowAccessToClosedShadowRoots)):

Canonical link: https://commits.webkit.org/295751@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to