Bug 251709 - `TextIndicator` does not support text-only snapshots when the selection is empty
Summary: `TextIndicator` does not support text-only snapshots when the selection is empty
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Aditya Keerthi
URL:
Keywords: InRadar
Depends on:
Blocks: 19127
  Show dependency treegraph
 
Reported: 2023-02-03 11:45 PST by Aditya Keerthi
Modified: 2023-02-10 11:46 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aditya Keerthi 2023-02-03 11:45:37 PST
When using Find in Page to search for text inside a "-webkit-user-select: none" node, the matched text is not highlighted.

This is because `TextIndicator` relies on the current selection for painting, which is empty for nodes that cannot be selected. To fix, we could teach TextIndicator to snapshot only foreground content if the selection is empty.
Comment 1 Radar WebKit Bug Importer 2023-02-10 11:46:31 PST
<rdar://problem/105288221>