<?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>16584</bug_id>
          
          <creation_ts>2007-12-23 05:39:43 -0800</creation_ts>
          <short_desc>[GTK] Need more fine grained return value for webkit_web_view_search_text</short_desc>
          <delta_ts>2014-04-08 17:53:46 -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>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>14141</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Xan Lopez">xan.lopez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>christian</cc>
    
    <cc>cosimoc</cc>
    
    <cc>mrobinson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65120</commentid>
    <comment_count>0</comment_count>
    <who name="Xan Lopez">xan.lopez</who>
    <bug_when>2007-12-23 05:39:43 -0800</bug_when>
    <thetext>Sometimes it&apos;s useful to know not only if the search has succeeded, but whether it had to wrap or not to do so. Epiphany, for instance, expects to get this information from the search API (in order to update the UI with the wrap information). The only way to do this now is to something like:

+  if (webkit_web_view_search_text (priv-&gt;web_view, priv-&gt;find_string, priv-&gt;case_sensitive, forward, FALSE))
+  {
+    return EPHY_EMBED_FIND_FOUND;
+  }
+  else if (webkit_web_view_search_text (priv-&gt;web_view, priv-&gt;find_string, priv-&gt;case_sensitive, forward, TRUE))
+  {
+    return EPHY_EMBED_FIND_FOUNDWRAPPED;
+  }
+  else
+    return EPHY_EMBED_FIND_NOTFOUND;

which is ugly.

It would be nice to return an enum value with { NOT_FOUND, FOUND, FOUND_WRAPPED } possibilities.

Not sure how easy is to do this given the WebCore API, does not look trivial at first sight though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998935</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2014-04-08 17:53:46 -0700</bug_when>
    <thetext>Going to close this one, but we should open a new bug if it&apos;s still an issue with ephy + WebKit2.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>