<?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>66638</bug_id>
          
          <creation_ts>2011-08-21 22:27:56 -0700</creation_ts>
          <short_desc>Range::setEnd(const Position&amp;, ExceptionCode) calls setStart() instead of setEnd()</short_desc>
          <delta_ts>2011-08-22 19:07:20 -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>HTML Editing</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>
          
          <blocked>65900</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alice Boxhall">aboxhall</reporter>
          <assigned_to name="Alice Boxhall">aboxhall</assigned_to>
          <cc>rniwa</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>454451</commentid>
    <comment_count>0</comment_count>
    <who name="Alice Boxhall">aboxhall</who>
    <bug_when>2011-08-21 22:27:56 -0700</bug_when>
    <thetext>Range::setEnd, introduced in bug 64403, incorrectly calls setStart(PassRefPtr&lt;Node&gt; refNode, int offset, ExceptionCode&amp; ec) instead of the equivalent setEnd() method.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>454453</commentid>
    <comment_count>1</comment_count>
      <attachid>104640</attachid>
    <who name="Alice Boxhall">aboxhall</who>
    <bug_when>2011-08-21 22:30:52 -0700</bug_when>
    <thetext>Created attachment 104640
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>454631</commentid>
    <comment_count>2</comment_count>
      <attachid>104640</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-22 09:34:36 -0700</bug_when>
    <thetext>Comment on attachment 104640
Patch

Oops, that was careless.  Thanks for fixing it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>454657</commentid>
    <comment_count>3</comment_count>
      <attachid>104640</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-22 10:19:54 -0700</bug_when>
    <thetext>Comment on attachment 104640
Patch

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

&gt; Source/WebCore/ChangeLog:8
&gt; +        Relevant layout test coming in a future patch (see https://bugs.webkit.org/show_bug.cgi?id=65900)

The patch for this bug doesn&apos;t appear to use setEnd.  Maybe a wrong bug number?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>455022</commentid>
    <comment_count>4</comment_count>
    <who name="Alice Boxhall">aboxhall</who>
    <bug_when>2011-08-22 15:54:14 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 104640 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=104640&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/ChangeLog:8
&gt; &gt; +        Relevant layout test coming in a future patch (see https://bugs.webkit.org/show_bug.cgi?id=65900)
&gt; 
&gt; The patch for this bug doesn&apos;t appear to use setEnd.  Maybe a wrong bug number?

The patch doesn&apos;t, but the surrounding code does, in AccessibilityRenderObject::indexForVisiblePosition(const VisiblePosition&amp;). The test for this patch exercises this code (which is how I found this bug in the first place).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>455024</commentid>
    <comment_count>5</comment_count>
    <who name="Alice Boxhall">aboxhall</who>
    <bug_when>2011-08-22 15:55:10 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; (From update of attachment 104640 [details] [details])
&gt; &gt; View in context: https://bugs.webkit.org/attachment.cgi?id=104640&amp;action=review
&gt; &gt; 
&gt; &gt; &gt; Source/WebCore/ChangeLog:8
&gt; &gt; &gt; +        Relevant layout test coming in a future patch (see https://bugs.webkit.org/show_bug.cgi?id=65900)
&gt; &gt; 
&gt; &gt; The patch for this bug doesn&apos;t appear to use setEnd.  Maybe a wrong bug number?
&gt; 
&gt; The patch doesn&apos;t, but the surrounding code does, in AccessibilityRenderObject::indexForVisiblePosition(const VisiblePosition&amp;). The test for this patch exercises this code (which is how I found this bug in the first place).

Oh, and that patch is out of date; I was waiting for this fix before I updated it, but now I realise that&apos;s unnecessary, so I&apos;ll update it now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>455150</commentid>
    <comment_count>6</comment_count>
      <attachid>104640</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-08-22 19:07:16 -0700</bug_when>
    <thetext>Comment on attachment 104640
Patch

Clearing flags on attachment: 104640

Committed r93574: &lt;http://trac.webkit.org/changeset/93574&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>455151</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-08-22 19:07:20 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>104640</attachid>
            <date>2011-08-21 22:30:52 -0700</date>
            <delta_ts>2011-08-22 19:07:16 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-66638-20110822153049.patch</filename>
            <type>text/plain</type>
            <size>1465</size>
            <attacher name="Alice Boxhall">aboxhall</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogOTM0OTIKZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZyBiL1NvdXJj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