Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d6d7c7fcff3d524612150afe878014b1926c8151
https://github.com/WebKit/WebKit/commit/d6d7c7fcff3d524612150afe878014b1926c8151
Author: Wenson Hsieh <[email protected]>
Date: 2026-05-27 (Wed, 27 May 2026)
Changed paths:
M
LayoutTests/fast/text-extraction/debug-text-extraction-form-controls-expected.txt
M LayoutTests/fast/text-extraction/debug-text-extraction-form-controls.html
M Source/WebCore/page/text-extraction/TextExtraction.cpp
M Source/WebKit/Shared/TextExtractionToStringConversion.cpp
Log Message:
-----------
[AutoFill Debugging] Include `value` attribute for a few additional types of
form controls
https://bugs.webkit.org/show_bug.cgi?id=315633
rdar://177934054
Reviewed by Abrar Rahman Protyasha.
Include the `value` attribute for inputs of type `submit`, `button`, `reset`
and `range`, where the
value won't already already be surfaced as visible text in UA shadow roots.
*
LayoutTests/fast/text-extraction/debug-text-extraction-form-controls-expected.txt:
* LayoutTests/fast/text-extraction/debug-text-extraction-form-controls.html:
* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::textDescription):
Also include the `value` for a subset of the push button types.
* Source/WebKit/Shared/TextExtractionToStringConversion.cpp:
(WebKit::trimAndSimplifyWhitespace):
(WebKit::shouldIncludeFormControlValue):
(WebKit::addJSONTextContent):
(WebKit::addPartsForItem):
Canonical link: https://commits.webkit.org/313974@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications