Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4111a479715f3c69a13dabd09d40f76fc9df1469
      
https://github.com/WebKit/WebKit/commit/4111a479715f3c69a13dabd09d40f76fc9df1469
  Author: Ahmad Saleem <[email protected]>
  Date:   2025-08-13 (Wed, 13 Aug 2025)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/selection/fire-selectionchange-event-on-document-if-textcontrol-element-is-in-shadow-tree-expected.txt
    M Source/WebCore/editing/FrameSelection.cpp

  Log Message:
  -----------
  Only schedule selectionchange on text controls outside shadow trees
https://bugs.webkit.org/show_bug.cgi?id=297200

Reviewed by Wenson Hsieh.

Currently, WebKit schedules a selectionchange on the text control
regardless of whether it was in a shadow tree, causing incorrect event
targets.

This patch adds a !textControl->isInShadowTree() check before scheduling
the control-level event, ensuring shadow tree cases fall back to the
document-level scheduling path.

* Source/WebCore/editing/FrameSelection.cpp:
(WebCore::FrameSelection::setSelectionWithoutUpdatingAppearance):
* 
LayoutTests/imported/w3c/web-platform-tests/selection/fire-selectionchange-event-on-document-if-textcontrol-element-is-in-shadow-tree-expected.txt:
 Progression

Canonical link: https://commits.webkit.org/298631@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