Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e3364ca09bc891ff61bbdeb9431ca5c72eb0a5c8
https://github.com/WebKit/WebKit/commit/e3364ca09bc891ff61bbdeb9431ca5c72eb0a5c8
Author: Wenson Hsieh <[email protected]>
Date: 2026-02-11 (Wed, 11 Feb 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
LayoutTests/fast/text-extraction/debug-text-extraction-shorten-urls-expected.txt
M Source/WebCore/page/text-extraction/TextExtraction.cpp
M Source/WebCore/platform/StringEntropyHelpers.cpp
M Source/WebCore/platform/StringEntropyHelpers.h
Log Message:
-----------
[AutoFill Debugging] Miscellaneous refinements when extracting DOM attributes
https://bugs.webkit.org/show_bug.cgi?id=307568
rdar://170157790
Reviewed by Abrar Rahman Protyasha.
Make several small refinements to text extraction:
- Limit file URLs to the last 2 path components.
- Only extract the `name` attribute if it's "probably human-readable" (based
on the same heuristic
used to shorten URLs).
- Simplify whitespace when extracting label text.
*
LayoutTests/fast/text-extraction/debug-text-extraction-form-controls-2-expected.txt:
* LayoutTests/fast/text-extraction/debug-text-extraction-form-controls-2.html:
Augment an existing layout test to contain a label and input with high-entropy
`name`.
*
LayoutTests/fast/text-extraction/debug-text-extraction-shorten-urls-expected.txt:
Rebaseline an existing layout test.
* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::stringOnlyIfHumanReadable):
(WebCore::TextExtraction::labelText):
(WebCore::TextExtraction::extractItemData):
(WebCore::TextExtraction::extractRecursive):
(WebCore::TextExtraction::handleInteraction):
Also fix this error detail to reflect the fact that node and/or search text is
preferred over
location.
* Source/WebCore/platform/StringEntropyHelpers.cpp:
(WebCore::StringEntropyHelpers::isProbablyHumanReadable):
* Source/WebCore/platform/StringEntropyHelpers.h:
Canonical link: https://commits.webkit.org/307314@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications