Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 46334f674a96c704eabffdc76013c8bf0754c142
https://github.com/WebKit/WebKit/commit/46334f674a96c704eabffdc76013c8bf0754c142
Author: Wenson Hsieh <[email protected]>
Date: 2026-02-23 (Mon, 23 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] Add a heuristic to prioritize buttons and links when
handling text-based click interactions
https://bugs.webkit.org/show_bug.cgi?id=308441
rdar://170939635
Reviewed by Aditya Keerthi.
When handling a click interaction with search text, we currently simulate a
click over the first
matching run of text in the document. We can make this smarter by prioritizing
both:
- Matching text in clickable elements
- Elements where the search text matches exactly
*
LayoutTests/fast/text-extraction/debug-text-extraction-interactions-expected.txt:
* LayoutTests/fast/text-extraction/debug-text-extraction-interactions.html:
Augment an existing test to exercise these enhancements.
* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::searchForClickTarget):
(WebCore::TextExtraction::dispatchSimulatedClick):
(WebCore::TextExtraction::textDescription):
(WebCore::TextExtraction::interactionDescription):
Canonical link: https://commits.webkit.org/308053@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications