Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1ef0aecdab99c95ca69374cdee56fb139d54bd49
      
https://github.com/WebKit/WebKit/commit/1ef0aecdab99c95ca69374cdee56fb139d54bd49
  Author: Wenson Hsieh <[email protected]>
  Date:   2026-02-14 (Sat, 14 Feb 2026)

  Changed paths:
    M 
LayoutTests/fast/text-extraction/debug-text-extraction-interactions-expected.txt
    M LayoutTests/fast/text-extraction/debug-text-extraction-interactions.html
    M Source/WebCore/page/text-extraction/TextExtraction.cpp

  Log Message:
  -----------
  [AutoFill Debugging] Interactions over disabled/readonly controls should fail 
with a descriptive error
https://bugs.webkit.org/show_bug.cgi?id=307913
rdar://170399636

Reviewed by Abrar Rahman Protyasha.

Make several interaction types fail in cases where the target node is either 
readonly (in the case
of text input) or disabled (in the case of clicks and selecting menu items).

* 
LayoutTests/fast/text-extraction/debug-text-extraction-interactions-expected.txt:
* LayoutTests/fast/text-extraction/debug-text-extraction-interactions.html:

Augment an existing layout test to cover these new cases.

* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::shadowHostOrSelfInclusiveParent):
(WebCore::TextExtraction::canBeEdited):
(WebCore::TextExtraction::isInDisabledFormControl):
(WebCore::TextExtraction::dispatchSimulatedClick):
(WebCore::TextExtraction::selectOptionByValue):
(WebCore::TextExtraction::focusAndInsertText):
(WebCore::TextExtraction::handleInteraction):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to