Bug 228529 - WKFindResult does not include number of matches or position of highlighted match
Summary: WKFindResult does not include number of matches or position of highlighted match
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-07-27 17:12 PDT by Sam S
Modified: 2021-08-03 17:13 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>