<?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>76522</bug_id>
          
          <creation_ts>2012-01-18 01:31:46 -0800</creation_ts>
          <short_desc>DidFindString should be emitted even if FindOptionsShowOverlay is not enabled</short_desc>
          <delta_ts>2012-02-29 10:15:44 -0800</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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergio Villar Senin">svillar</reporter>
          <assigned_to name="Sergio Villar Senin">svillar</assigned_to>
          <cc>andersca</cc>
    
    <cc>cgarcia</cc>
    
    <cc>darin</cc>
    
    <cc>svillar</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>537709</commentid>
    <comment_count>0</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-01-18 01:31:46 -0800</bug_when>
    <thetext>After talking to andersca on IRC it seems it was done like that due to how OS X works. It seems that Safari works anyway if we send the message in the absence of that flag, and it seems more correct. This way, non Mac ports do not need to enable the show overlay options to get signaled about occurrences of the searched string in the web view.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>537742</commentid>
    <comment_count>1</comment_count>
      <attachid>122896</attachid>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-01-18 02:55:19 -0800</bug_when>
    <thetext>Created attachment 122896
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>542062</commentid>
    <comment_count>2</comment_count>
      <attachid>123895</attachid>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-01-25 01:01:52 -0800</bug_when>
    <thetext>Created attachment 123895
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>542063</commentid>
    <comment_count>3</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-01-25 01:02:51 -0800</bug_when>
    <thetext>Updating the patch after http://trac.webkit.org/changeset/105855</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>543265</commentid>
    <comment_count>4</comment_count>
      <attachid>123895</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2012-01-26 10:46:31 -0800</bug_when>
    <thetext>Comment on attachment 123895
Patch

The question for me is not “Is Safari broken?” but rather “Are there callers who want to do a find but not makeAllMatchesForText”. The patch talks about emitting DidFindString, but the key difference here is that the old code could be used to search for the string once, but the new code searches the full page for all instances of the string.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>543317</commentid>
    <comment_count>5</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-01-26 11:24:04 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 123895 [details])
&gt; The question for me is not “Is Safari broken?” but rather “Are there callers who want to do a find but not makeAllMatchesForText”. The patch talks about emitting DidFindString, but the key difference here is that the old code could be used to search for the string once, but the new code searches the full page for all instances of the string.

You made a good point, IMO we have 2 different issues here:

1) DidFindString should always be emitted (if the text is found obviously), whether or not you have the ShowOverlay option. I guess that&apos;s something that should not be under discussion.

2) It&apos;s true that the patch I uploaded changes the behaviour in the sense you mention. What we could do is the following. If the showOverlay and/or showHighlight options are specified we could assume that the caller wants markAllMatches to be called, otherwise the findString call will just look for the next occurrence of the search string in the test.

What do you think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>543897</commentid>
    <comment_count>6</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-01-27 01:38:35 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; (In reply to comment #4)
&gt; &gt; (From update of attachment 123895 [details] [details])
&gt; &gt; The question for me is not “Is Safari broken?” but rather “Are there callers who want to do a find but not makeAllMatchesForText”. The patch talks about emitting DidFindString, but the key difference here is that the old code could be used to search for the string once, but the new code searches the full page for all instances of the string.
&gt; 
&gt; You made a good point, IMO we have 2 different issues here:
&gt; 
&gt; 1) DidFindString should always be emitted (if the text is found obviously), whether or not you have the ShowOverlay option. I guess that&apos;s something that should not be under discussion.

Well perhaps it&apos;s indeed under discussion. I was not taking into account that the signal carries the total number of matches. So I have know a different proposal.

1) Remove the matchCount argument from the DidFindString message. It&apos;ll be issued whenever findString finds the string.
2) Perform the markAllTextMatches() only when (shouldShowOverlay || shouldShowHighlight) &lt;- I am not very happy with this because something from the view is driving a different behaviour, but we can live with it in order not to add too many find options
3) Issue DidCountStringMatches() in FindController::findString method if markAllTextMatches() was called to inform about the total number of matches (since DidFindString does not longer carry that information)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>547207</commentid>
    <comment_count>7</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-02-01 10:54:51 -0800</bug_when>
    <thetext>There is also another interesting thing to consider. Mac port does not care much about unmarking text matches because highlight is not shown and the find UI (the overlay) is automatically hidden after a mouse click. The obvious choice seems to be calling unmarkAllTextMatches in FindController::hideFindUI. What do you think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>547239</commentid>
    <comment_count>8</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-02-01 11:36:18 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; Well perhaps it&apos;s indeed under discussion. I was not taking into account that the signal carries the total number of matches. So I have know a different proposal.
&gt; 
&gt; 1) Remove the matchCount argument from the DidFindString message. It&apos;ll be issued whenever findString finds the string.
&gt; 2) Perform the markAllTextMatches() only when (shouldShowOverlay || shouldShowHighlight) &lt;- I am not very happy with this because something from the view is driving a different behaviour, but we can live with it in order not to add too many find options
&gt; 3) Issue DidCountStringMatches() in FindController::findString method if markAllTextMatches() was called to inform about the total number of matches (since DidFindString does not longer carry that information)

Actually changing the signal signature is not required. The API contract would just specify that the number of matches will be at most 1 if neither showOverlay nor showHighlight are specified because in those cases find will just look for the next appearance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>548785</commentid>
    <comment_count>9</comment_count>
      <attachid>125350</attachid>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-02-03 09:27:24 -0800</bug_when>
    <thetext>Created attachment 125350
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>548846</commentid>
    <comment_count>10</comment_count>
      <attachid>125350</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2012-02-03 10:44:46 -0800</bug_when>
    <thetext>Comment on attachment 125350
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=125350&amp;action=review

&gt; Source/WebKit2/ChangeLog:16
&gt; +        No new tests required, as there is no change in functionality,
&gt; +        which is already covered by editing/text-iterator/findString.html.

This is a bogus comment! The patch adds a new, untested feature, and so there should be a test for that feature. Saying that existing test results aren’t affected is good, but has no bearing on whether a new test should be added. We do require tests for code changes. The test might need to be only on the GTK platform or have some other restriction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>549826</commentid>
    <comment_count>11</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-02-06 01:23:09 -0800</bug_when>
    <thetext>(In reply to comment #10)
&gt; (From update of attachment 125350 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=125350&amp;action=review
&gt; 
&gt; &gt; Source/WebKit2/ChangeLog:16
&gt; &gt; +        No new tests required, as there is no change in functionality,
&gt; &gt; +        which is already covered by editing/text-iterator/findString.html.
&gt; 
&gt; This is a bogus comment! The patch adds a new, untested feature, and so there should be a test for that feature. Saying that existing test results aren’t affected is good, but has no bearing on whether a new test should be added. We do require tests for code changes. The test might need to be only on the GTK platform or have some other restriction.

Fair enough. I have another patch http://webkit.org/b/76070 that adds a bunch of API tests for the webkitgtk&apos;s WK2 Find API. Some of them will fail without this patch. So we&apos;d likely land those API tests first with some of them commented, and then this patch will make them work. Does it make sense?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>550084</commentid>
    <comment_count>12</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2012-02-06 10:22:46 -0800</bug_when>
    <thetext>(In reply to comment #11)
&gt; I have another patch http://webkit.org/b/76070 that adds a bunch of API tests for the webkitgtk&apos;s WK2 Find API. Some of them will fail without this patch. So we&apos;d likely land those API tests first with some of them commented, and then this patch will make them work. Does it make sense?

Sure. The way we’d normally do that is have this patch include the “uncommenting out tests” aspect as well, but of course that involves getting that other patch landed before this patch is reviewed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>550091</commentid>
    <comment_count>13</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-02-06 10:32:44 -0800</bug_when>
    <thetext>(In reply to comment #12)
&gt; (In reply to comment #11)
&gt; &gt; I have another patch http://webkit.org/b/76070 that adds a bunch of API tests for the webkitgtk&apos;s WK2 Find API. Some of them will fail without this patch. So we&apos;d likely land those API tests first with some of them commented, and then this patch will make them work. Does it make sense?
&gt; 
&gt; Sure. The way we’d normally do that is have this patch include the “uncommenting out tests” aspect as well, but of course that involves getting that other patch landed before this patch is reviewed.

Great. So once the other patch with the new API lands, I will update and land this one mentioning that it fixes some of the tests previously committed to the repos.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>567700</commentid>
    <comment_count>14</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2012-02-29 10:15:44 -0800</bug_when>
    <thetext>Committed r109228: &lt;http://trac.webkit.org/changeset/109228&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>122896</attachid>
            <date>2012-01-18 02:55:19 -0800</date>
            <delta_ts>2012-01-25 01:01:45 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-76522-20120118115517.patch</filename>
            <type>text/plain</type>
            <size>3040</size>
            <attacher name="Sergio Villar Senin">svillar</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTA1MjUxCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXggYWU3YmNmNjZiY2ZhZmVl
YjFkMmVmYWVjYWQyZTI0NzVkMDc5MmFiNC4uYzhiOTZiMjNiNjJmMjAwYjM2NzI1OTIzYmZlNDIy
N2YzMGFkZTMyOSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJLaXQyL0NoYW5nZUxvZwpAQCAtMSwzICsxLDIwIEBACisyMDEyLTAxLTE4ICBTZXJn
aW8gVmlsbGFyIFNlbmluICA8c3ZpbGxhckBpZ2FsaWEuY29tPgorCisgICAgICAgIERpZEZpbmRT
dHJpbmcgc2hvdWxkIG1lIGVtaXR0ZWQgZXZlbiBpZiBGaW5kT3B0aW9uc1Nob3dPdmVybGF5IGlz
IG5vdCBlbmFibGVkCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNn
aT9pZD03NjUyMgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAg
ICAgIERpZEZpbmRTdHJpbmcgbWVzc2FnZSBzaG91bGQgYmUgaXNzdWVkIGV2ZW4gaWYKKyAgICAg
ICAgRmluZE9wdGlvbnNTaG93T3ZlcmxheSBpcyBub3QgcHJvdmlkZWQuIFRoZSBvbGQgYmVoYXZp
b3VyIHdhcworICAgICA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GNoQ291bnQpKTsKKyAgICAgICAgaWYgKG1heE1h
dGNoQ291bnQgPT0gbnVtZXJpY19saW1pdHM8dW5zaWduZWQ+OjptYXgoKSkKKyAgICAgICAgICAg
IC0tbWF4TWF0Y2hDb3VudDsKKworICAgICAgICB1bnNpZ25lZCBtYXRjaENvdW50ID0gbV93ZWJQ
YWdlLT5jb3JlUGFnZSgpLT5tYXJrQWxsTWF0Y2hlc0ZvclRleHQoc3RyaW5nLCBjb3JlKG9wdGlv
bnMpLCBmYWxzZSwgbWF4TWF0Y2hDb3VudCArIDEpOworCisgICAgICAgIC8vIENoZWNrIGlmIHdl
IGhhdmUgbW9yZSBtYXRjaGVzIHRoYW4gYWxsb3dlZC4KKyAgICAgICAgaWYgKG1hdGNoQ291bnQg
PiBtYXhNYXRjaENvdW50KSB7CisgICAgICAgICAgICBzaG91bGRTaG93T3ZlcmxheSA9IGZhbHNl
OworICAgICAgICAgICAgbWF0Y2hDb3VudCA9IHN0YXRpY19jYXN0PHVuc2lnbmVkPihrV0tNb3Jl
VGhhbk1heGltdW1NYXRjaENvdW50KTsKICAgICAgICAgfQogCisgICAgICAgIG1fd2ViUGFnZS0+
c2VuZChNZXNzYWdlczo6V2ViUGFnZVByb3h5OjpEaWRGaW5kU3RyaW5nKHN0cmluZywgbWF0Y2hD
b3VudCkpOworCiAgICAgICAgIGlmICghKG9wdGlvbnMgJiBGaW5kT3B0aW9uc1Nob3dGaW5kSW5k
aWNhdG9yKSB8fCAhdXBkYXRlRmluZEluZGljYXRvcihzZWxlY3RlZEZyYW1lLCBzaG91bGRTaG93
T3ZlcmxheSkpIHsKICAgICAgICAgICAgIC8vIEVpdGhlciB3ZSBzaG91bGRuJ3Qgc2hvdyB0aGUg
ZmluZCBpbmRpY2F0b3IsIG9yIHdlIGNvdWxkbid0IHVwZGF0ZSBpdC4KICAgICAgICAgICAgIGhp
ZGVGaW5kSW5kaWNhdG9yKCk7Cg==
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>123895</attachid>
            <date>2012-01-25 01:01:52 -0800</date>
            <delta_ts>2012-02-03 09:27:17 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-76522-20120125100150.patch</filename>
            <type>text/plain</type>
            <size>3287</size>
            <attacher name="Sergio Villar Senin">svillar</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTA1ODU1CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXggYjcwODRhYzcyNDNkMzNj
ZGNlZTA0MzEwZDUxZTk5MGY1MzI2ODViNi4uZTI1ZjFlZmI2YWMzNjRiMTlhZDAzNTY4YzQ4ZjQ2
YTljMGU4ZjBhYiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJLaXQyL0NoYW5nZUxvZwpAQCAtMSwzICsxLDIwIEBACisyMDEyLTAxLTE4ICBTZXJn
aW8gVmlsbGFyIFNlbmluICA8c3ZpbGxhckBpZ2FsaWEuY29tPgorCisgICAgICAgIERpZEZpbmRT
dHJpbmcgc2hvdWxkIGJlIGVtaXR0ZWQgZXZlbiBpZiBGaW5kT3B0aW9uc1Nob3dPdmVybGF5IGlz
IG5vdCBlbmFibGVkCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNn
aT9pZD03NjUyMgorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAg
ICAgIERpZEZpbmRTdHJpbmcgbWVzc2FnZSBzaG91bGQgYmUgaXNzdWVkIGV2ZW4gaWYKKyAgICAg
ICAgRmluZE9wdGlvbnNTaG93T3ZlcmxheSBpcyBub3QgcHJvdmlkZWQuIFRoZSBvbGQgYmVoYXZp
b3VyIHdhcworICAgICAgICBpbn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ZiAoIShvcHRpb25zICYgRmlu
ZE9wdGlvbnNTaG93RmluZEluZGljYXRvcikgfHwgIXVwZGF0ZUZpbmRJbmRpY2F0b3Ioc2VsZWN0
ZWRGcmFtZSwgc2hvdWxkU2hvd092ZXJsYXkpKSB7CiAgICAgICAgICAgICAvLyBFaXRoZXIgd2Ug
c2hvdWxkbid0IHNob3cgdGhlIGZpbmQgaW5kaWNhdG9yLCBvciB3ZSBjb3VsZG4ndCB1cGRhdGUg
aXQuCiAgICAgICAgICAgICBoaWRlRmluZEluZGljYXRvcigpOwo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>125350</attachid>
            <date>2012-02-03 09:27:24 -0800</date>
            <delta_ts>2012-02-03 10:44:46 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-76522-20120203182722.patch</filename>
            <type>text/plain</type>
            <size>3219</size>
            <attacher name="Sergio Villar Senin">svillar</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTA2NDc4CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0Mi9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViS2l0Mi9DaGFuZ2VMb2cKaW5kZXggYzY5YzIwZGI5MzgxZWYy
MzNmMDVhMmQ5ZDIzZjU3NDYyM2JhNzU4MC4uZjQwZGVmMjBhZDYxOGVkNzU2OTQ3ZWI4YWYzMTE0
Yjg3OWU2Y2FlNiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJLaXQyL0NoYW5nZUxvZwpAQCAtMSwzICsxLDIzIEBACisyMDEyLTAyLTAzICBTZXJn
aW8gVmlsbGFyIFNlbmluICA8c3ZpbGxhckBpZ2FsaWEuY29tPgorCisgICAgICAgIERpZEZpbmRT
dHJpbmcgc2hvdWxkIGJlIGVtaXR0ZWQgZXZlbiBpZiBGaW5kT3B0aW9uc1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VuZChNZXNzYWdlczo6V2ViUGFnZVByb3h5OjpEaWRG
aW5kU3RyaW5nKHN0cmluZywgbWF0Y2hDb3VudCkpOwogICAgICAgICB9CiAKKyAgICAgICAgbV93
ZWJQYWdlLT5zZW5kKE1lc3NhZ2VzOjpXZWJQYWdlUHJveHk6OkRpZEZpbmRTdHJpbmcoc3RyaW5n
LCBtYXRjaENvdW50KSk7CisKICAgICAgICAgaWYgKCEob3B0aW9ucyAmIEZpbmRPcHRpb25zU2hv
d0ZpbmRJbmRpY2F0b3IpIHx8ICF1cGRhdGVGaW5kSW5kaWNhdG9yKHNlbGVjdGVkRnJhbWUsIHNo
b3VsZFNob3dPdmVybGF5KSkgewogICAgICAgICAgICAgLy8gRWl0aGVyIHdlIHNob3VsZG4ndCBz
aG93IHRoZSBmaW5kIGluZGljYXRvciwgb3Igd2UgY291bGRuJ3QgdXBkYXRlIGl0LgogICAgICAg
ICAgICAgaGlkZUZpbmRJbmRpY2F0b3IoKTsK
</data>
<flag name="review"
          id="126839"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>