Bug 228529

Summary: WKFindResult does not include number of matches or position of highlighted match
Product: WebKit Reporter: Sam S <246g2wr4>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Enhancement CC: beidson, ggaren, kkinnunen, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Sam S 2021-07-27 17:12:03 PDT
An instance of WKFindResult is returned when using the Find In Page API, findString:withConfiguration:completionHandler:.

It includes a boolean flag, matchFound, but does not include the number of matches or the position of the currently highlighted match.

This enhancement would allow for UI similar to the Safari Find In Page search bar, e.g. "2 of 6 matches". Ideally, these would be available as two new Int properties on WKFindResult.
Comment 1 Radar WebKit Bug Importer 2021-08-03 17:13:15 PDT
<rdar://problem/81488607>