<?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>40361</bug_id>
          
          <creation_ts>2010-06-09 07:04:31 -0700</creation_ts>
          <short_desc>Frame::findString does nothing on pages that prevent selection</short_desc>
          <delta_ts>2013-05-22 15:52:09 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://m.cnn.com</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mike Fenton">mifenton</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>darin</cc>
    
    <cc>enrica</cc>
    
    <cc>mitz</cc>
    
    <cc>mkosiba</cc>
    
    <cc>rniwa</cc>
    
    <cc>sullivan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>235769</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Fenton">mifenton</who>
    <bug_when>2010-06-09 07:04:31 -0700</bug_when>
    <thetext>On pages that prevent selection, such as m.cnn.com, any calls to Frame::findString fail to mark any matches because the markers are tied directly to selection which is prevented.

An alternate method for marking found text (perhaps using a document marker) should be used for all non-editable text.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235971</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-06-09 13:35:03 -0700</bug_when>
    <thetext>Testing Cmd+F behavior on this page:

Mac Safari 4.0.5: nothing is found.
Mac Safari 5: all matches are found, but current match isn&apos;t highlighted, and Cmd+G is broken.
Mac Safari 4.0.5 + ToT WebKit: Same as Safari 5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235972</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-06-09 13:35:30 -0700</bug_when>
    <thetext>&lt;rdar://problem/8076589&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>502004</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Kosiba">mkosiba</who>
    <bug_when>2011-11-14 09:35:06 -0800</bug_when>
    <thetext>You could use rangeOfString (which is what findString uses under the covers) as I&apos;ve demonstrated here: https://bugs.webkit.org/show_bug.cgi?id=72281.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>502084</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-11-14 10:54:40 -0800</bug_when>
    <thetext>I think we should fix findString to handle this case as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>502350</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-11-14 15:02:41 -0800</bug_when>
    <thetext>Fixing Safari’s command-F behavior will be mostly Safari code changes. I don’t think this can be done as a pure WebKit fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>502794</commentid>
    <comment_count>6</comment_count>
    <who name="Martin Kosiba">mkosiba</who>
    <bug_when>2011-11-15 03:53:47 -0800</bug_when>
    <thetext>The most I can do is wrap up the &quot;find and display results using markers&quot; functionality to make the issue simpler to fix in other ports.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>892581</commentid>
    <comment_count>7</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-05-22 15:52:09 -0700</bug_when>
    <thetext>editing/text-iterator/findString-selection-disabled.html passes now. I&apos;m not sure if we should also close this bug or not.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>