<?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>6451</bug_id>
          
          <creation_ts>2006-01-09 08:10:45 -0800</creation_ts>
          <short_desc>REGRESSION: After Find, selected text sometimes includes preceding img element</short_desc>
          <delta_ts>2006-01-11 17:37:03 -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>Layout and Rendering</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5127</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Sullivan">sullivan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28051</commentid>
    <comment_count>0</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2006-01-09 08:10:45 -0800</bug_when>
    <thetext>This is also in Radar as: &lt;rdar://problem/4402375&gt; REGRESSION (417.8 - TOT): finding text sometimes 
also selects previous image

In certain cases, after performing a Find, the resulting selection highlights both the found text and a 
preceding image element. This did not happen on the last released version of WebKit/Safari.

I&apos;ll attach a test case with steps that are appropriate to that test case momentarily.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28052</commentid>
    <comment_count>1</comment_count>
      <attachid>5570</attachid>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2006-01-09 08:13:47 -0800</bug_when>
    <thetext>Created attachment 5570
A few test cases that show this bug.

To reproduce with this test page:
1. Load the test page
2. Command-F in Safari to bring up Find UI
3. Type &quot;Throw&quot; and hit Return to find first instance of Throw

Note that the text &quot;Throw&quot; has the selection highlight, and the image right
before the text also has the selection highlight. If you search for more
instances with Find Next (command-G) the same thing occurs for the other test
cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28053</commentid>
    <comment_count>2</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2006-01-09 08:14:41 -0800</bug_when>
    <thetext>From &lt;rdar://problem/4402375&gt;:

This bug does not occur in Safari-417.8, so it&apos;s a regression in TOT. The bug is probably in 
KWQKHTMLPart::findString, perhaps in this line:

    setSelection(SelectionController(resultRange.get(), DOWNSTREAM, VP_UPSTREAM_IF_POSSIBLE));
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28054</commentid>
    <comment_count>3</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2006-01-09 08:16:18 -0800</bug_when>
    <thetext>It&apos;s possible that I introduced this bug at some point since I did some work in findString a while back, but I 
suspect that the regression is instead caused by some other change, perhaps editing-related.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28063</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-01-09 10:02:48 -0800</bug_when>
    <thetext>Mitz points out that this looks very similar to bug 5127, and I agree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28064</commentid>
    <comment_count>5</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2006-01-09 10:28:51 -0800</bug_when>
    <thetext>Yep, it seems extremely likely that this is the same as 5127 (and thus not directly related to findString).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28188</commentid>
    <comment_count>6</comment_count>
    <who name="Alice Liu">alice.barraclough</who>
    <bug_when>2006-01-10 14:37:42 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 5127 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>5570</attachid>
            <date>2006-01-09 08:13:47 -0800</date>
            <delta_ts>2006-01-09 08:13:47 -0800</delta_ts>
            <desc>A few test cases that show this bug.</desc>
            <filename>6451-examples.html</filename>
            <type>text/html</type>
            <size>899</size>
            <attacher name="John Sullivan">sullivan</attacher>
            
              <data encoding="base64">IAo8cD5JbWFnZSBjb250YWluZWQgaW4gVEQgZWxlbWVudCB3aXRoIHRleHQ8L3A+Cjx0YWJsZT48
dHI+PHRkPjxpbWcgc3JjPSJodHRwOi8vaW1hZ2VzLmFtYXpvbi5jb20vaW1hZ2VzL1AvQjAwMEJU
U1RPRS4wMS5fUEVfU0NUWlpaWlpaWl8uanBnIiB3aWR0aD0iMTIxIiBhbGlnbj0ibGVmdCIgaGVp
Z2h0PSI5OSIgYm9yZGVyPSIwIj5UaHJvdyBvdXQ8L3RkPjwvdHI+PC90YWJsZT4KCgo8cD5JbWFn
ZSBjb250YWluZWQgaW4gUCBlbGVtZW50IHdpdGggdGV4dDwvcD4KIDxwPjxpbWcgc3JjPSJodHRw
Oi8vaW1hZ2VzLmFtYXpvbi5jb20vaW1hZ2VzL1AvQjAwMEJUU1RPRS4wMS5fUEVfU0NUWlpaWlpa
Wl8uanBnIiB3aWR0aD0iMTIxIiBhbGlnbj0ibGVmdCIgaGVpZ2h0PSI5OSIgYm9yZGVyPSIwIj5U
aHJvdyBvdXQ8L3A+PGJyPjxicj48YnI+CgoKCjxwIGFsaWduPSJsZWZ0Ij5JbWFnZSBjb250YWlu
ZWQgaW4gRElWIGVsZW1lbnQgd2l0aCB0ZXh0PC9wPjxCUj4KIDxESVYgYWxpZ249ImxlZnQiPjxp
bWcgc3JjPSJodHRwOi8vaW1hZ2VzLmFtYXpvbi5jb20vaW1hZ2VzL1AvQjAwMEJUU1RPRS4wMS5f
UEVfU0NUWlpaWlpaWl8uanBnIiB3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