<?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>17004</bug_id>
          
          <creation_ts>2008-01-25 02:28:36 -0800</creation_ts>
          <short_desc>Assertion failure in VisiblePosition::previous clicking on 92/100 text on Acid3 results</short_desc>
          <delta_ts>2008-03-19 15:36:33 -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>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://acid3.acidtests.org/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>17064</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric</cc>
    
    <cc>justin.garcia</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68200</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-01-25 02:28:36 -0800</bug_when>
    <thetext>Steps to reproduce:
1. Open http://hixie.ch/tests/evil/acid/003/NOT_READY_PLEASE_DO_NOT_USE.html
2. As it finishes, click on the result numbers (e.g. 67/100).

An assertion fails:
(/Users/ap/Safari/OpenSource/WebCore/editing/VisiblePosition.cpp:85 WebCore::VisiblePosition WebCore::VisiblePosition::previous(bool) const)

Thread 0 Crashed:
0   com.apple.WebCore             	0x01f9439d WebCore::VisiblePosition::previous(bool) const + 169 (VisiblePosition.cpp:85)
1   com.apple.WebCore             	0x02005e90 WebCore::positionAvoidingFirstPositionInTable(WebCore::VisiblePosition const&amp;) + 38 (visible_units.cpp:271)
2   com.apple.WebCore             	0x02006088 WebCore::startPositionForLine(WebCore::VisiblePosition const&amp;) + 426 (visible_units.cpp:321)
3   com.apple.WebCore             	0x020060aa WebCore::startOfLine(WebCore::VisiblePosition const&amp;) + 18 (visible_units.cpp:328)
4   com.apple.WebCore             	0x02006304 WebCore::inSameLine(WebCore::VisiblePosition const&amp;, WebCore::VisiblePosition const&amp;) + 50 (visible_units.cpp:415)
5   com.apple.WebCore             	0x01f93de7 WebCore::VisiblePosition::init(WebCore::Position const&amp;, WebCore::EAffinity) + 149 (VisiblePosition.cpp:61)
6   com.apple.WebCore             	0x01f93ea5 WebCore::VisiblePosition::VisiblePosition(WebCore::Node*, int, WebCore::EAffinity) + 133 (VisiblePosition.cpp:51)
7   com.apple.WebCore             	0x01f93edc WebCore::VisiblePosition::VisiblePosition(WebCore::Node*, int, WebCore::EAffinity) + 38 (VisiblePosition.cpp:52)
8   com.apple.WebCore             	0x01e58599 WebCore::RenderText::positionForCoordinates(int, int) + 885 (RenderText.cpp:296)
9   com.apple.WebCore             	0x01b8309f WebCore::RenderObject::positionForPoint(WebCore::IntPoint const&amp;) + 77 (RenderObject.h:523)
10  com.apple.WebCore             	0x01b7dc2d WebCore::EventHandler::handleMousePressEventSingleClick(WebCore::MouseEventWithHitTestResults const&amp;) + 443 (EventHandler.cpp:260)
11  com.apple.WebCore             	0x01b7e4b6 WebCore::EventHandler::handleMousePressEvent(WebCore::MouseEventWithHitTestResults const&amp;) + 680 (EventHandler.cpp:344)
12  com.apple.WebCore             	0x01b82dd7 WebCore::EventHandler::handleMousePressEvent(WebCore::PlatformMouseEvent const&amp;) + 1717 (EventHandler.cpp:905)
13  com.apple.WebCore             	0x01b870e8 WebCore::EventHandler::mouseDown(NSEvent*) + 554 (EventHandlerMac.mm:480)
14  com.apple.WebKit              	0x001d1b5d -[WebHTMLView mouseDown:] + 499 (WebHTMLView.mm:2979)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68543</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-01-29 00:20:37 -0800</bug_when>
    <thetext>*** Bug 17059 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73456</commentid>
    <comment_count>2</comment_count>
      <attachid>19698</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-03-12 06:47:34 -0700</bug_when>
    <thetext>Created attachment 19698
reduced test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73458</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-03-12 07:16:27 -0700</bug_when>
    <thetext>&lt;rdar://problem/5794920&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73502</commentid>
    <comment_count>4</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2008-03-12 13:50:56 -0700</bug_when>
    <thetext>I&apos;m looking at this.  upstream and downstream don&apos;t really understand inline-blocks, which confuses VisiblePosition::canonicalPosition...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73841</commentid>
    <comment_count>5</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2008-03-15 17:17:29 -0700</bug_when>
    <thetext>*** Bug 17867 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74345</commentid>
    <comment_count>6</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2008-03-18 16:27:16 -0700</bug_when>
    <thetext>Getting close on this...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74476</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-03-19 15:36:33 -0700</bug_when>
    <thetext>This was: http://trac.webkit.org/projects/webkit/changeset/31161</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>19698</attachid>
            <date>2008-03-12 06:47:34 -0700</date>
            <delta_ts>2008-03-12 06:47:34 -0700</delta_ts>
            <desc>reduced test case</desc>
            <filename>acid-assertion.html</filename>
            <type>text/html</type>
            <size>112</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PGJvZHk+CiAgPHAgc3R5bGU9ImRpc3BsYXk6IGlubGluZS1ibG9jazsgcGFkZGluZzogMS4wZW0g
MS4zZW07Ij48L3A+CiAgPHA+Q2xpY2sgaGVyZSAod2lsbCBhc3NlcnQpPC9wPgo8L2JvZHk+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>