Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f6c59e7e6cb6f5cf6cbf406af1e7e38187fed8fa
      
https://github.com/WebKit/WebKit/commit/f6c59e7e6cb6f5cf6cbf406af1e7e38187fed8fa
  Author: Wenson Hsieh <[email protected]>
  Date:   2025-11-15 (Sat, 15 Nov 2025)

  Changed paths:
    M LayoutTests/fast/text-extraction/debug-text-extraction-basic-expected.txt
    M LayoutTests/fast/text-extraction/debug-text-extraction-basic.html
    M 
LayoutTests/fast/text-extraction/debug-text-extraction-form-controls-expected.txt
    M 
LayoutTests/fast/text-extraction/debug-text-extraction-lightweight-expected.txt
    M Source/WebCore/page/text-extraction/TextExtraction.cpp
    M Source/WebKit/Shared/TextExtractionToStringConversion.cpp

  Log Message:
  -----------
  [AutoFill Debugging] Add support for `aria-(labeled|labelled|described)by` 
DOM attributes
https://bugs.webkit.org/show_bug.cgi?id=302578
rdar://164800859

Reviewed by Abrar Rahman Protyasha.

Make a couple of enhancements to debug text extraction:

-   Add support for 3 more accessibility attributes which reference other 
elements in the DOM:
    `aria-labeledby`, `aria-labelledby`, and `aria-describedby`. However, 
rather that surface the
    DOM attribute values themselves (which are `id` attributes referencing 
other elements in the
    DOM), we surface the visible text inside those referenced elements.

-   Additionally trim all whitespace characters (not just newlines) around 
visible text.

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

Move this helper method to the top of the file.

(WebCore::TextExtraction::extractRecursive):
* Source/WebKit/Shared/TextExtractionToStringConversion.cpp:
(WebKit::addPartsForText):

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



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

Reply via email to