<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>228529</bug_id>
          
          <creation_ts>2021-07-27 17:12:03 -0700</creation_ts>
          <short_desc>WKFindResult does not include number of matches or position of highlighted match</short_desc>
          <delta_ts>2021-08-03 17:13:15 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit2</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sam S">246g2wr4</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
    
    <cc>ggaren</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>thorton</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1779908</commentid>
    <comment_count>0</comment_count>
    <who name="Sam S">246g2wr4</who>
    <bug_when>2021-07-27 17:12:03 -0700</bug_when>
    <thetext>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. &quot;2 of 6 matches&quot;. Ideally, these would be available as two new Int properties on WKFindResult.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1781787</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-08-03 17:13:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/81488607&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>