Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 52f0fa51701de2abe589c80250124caab3cf1e48
https://github.com/WebKit/WebKit/commit/52f0fa51701de2abe589c80250124caab3cf1e48
Author: Wenson Hsieh <[email protected]>
Date: 2026-05-21 (Thu, 21 May 2026)
Changed paths:
M LayoutTests/fast/text-extraction/debug-text-extraction-basic-expected.txt
M LayoutTests/fast/text-extraction/debug-text-extraction-basic.html
M Source/WebCore/page/text-extraction/TextExtraction.cpp
Log Message:
-----------
[AutoFill Debugging] Include identifiers for elements that appear clickable
https://bugs.webkit.org/show_bug.cgi?id=315256
rdar://177586494
Reviewed by Richard Robinson and Abrar Rahman Protyasha.
Extract node identifiers for elements that appear clickable, even if a click or
mouse-related event
listener isn't directly on the element itself. This encompasses elements which
satisfy all of the
following criteria:
- Is styled with `cursor: pointer;`
- Parent is not styled with `cursor: pointer;`
- Is visually distinct (based on existing heuristics for markdown segmentation).
* LayoutTests/fast/text-extraction/debug-text-extraction-basic-expected.txt:
* LayoutTests/fast/text-extraction/debug-text-extraction-basic.html:
Adjust an existing layout test to cover this change.
* Source/WebCore/page/text-extraction/TextExtraction.cpp:
(WebCore::TextExtraction::hasVisuallyDistinctStyling):
(WebCore::TextExtraction::isVisuallyDistinctContainer):
(WebCore::TextExtraction::looksVisuallyClickable):
(WebCore::TextExtraction::extractRecursive):
Canonical link: https://commits.webkit.org/313662@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications