Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6bd6d7813da4f9ad8cf98ddd6b6001584c3cb9f8
      
https://github.com/WebKit/WebKit/commit/6bd6d7813da4f9ad8cf98ddd6b6001584c3cb9f8
  Author: Wenson Hsieh <[email protected]>
  Date:   2026-06-13 (Sat, 13 Jun 2026)

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

  Log Message:
  -----------
  [Text Extraction] Concatenate all label text for form controls
https://bugs.webkit.org/show_bug.cgi?id=317081
rdar://179590407

Reviewed by Richard Robinson.

Concatenate all relevant label text when extracting text representation for 
form controls. On
https://nypost.com/account/settings, after entering an email and clicking 
Continue, the readonly
email input is labeled by both "Email Address" and "Password"; we currently 
only surface "Password"
as the label text, which occasionally confuses the agent.

After this change, the label text becomes "Email Address Password".

* 
LayoutTests/fast/text-extraction/debug-text-extraction-form-controls-2-expected.txt:
* LayoutTests/fast/text-extraction/debug-text-extraction-form-controls-2.html:
* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::labelText):

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



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

Reply via email to