<?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>5717</bug_id>
          
          <creation_ts>2005-11-12 07:39:24 -0800</creation_ts>
          <short_desc>REGRESSION: [WebCoreBridge _visiblePositionForPoint:(0,x)] crashes</short_desc>
          <delta_ts>2005-11-21 11:04:52 -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>HTML Editing</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>5230</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Justin Garcia">justin.garcia</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23949</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-11-12 07:39:24 -0800</bug_when>
    <thetext>_visiblePositionForPoint lacks a check for the case when renderer-&gt;layer()-&gt;hitTest() doesn&apos;t find any 
node.

This causes a crash in &quot;run-webkit-tests editing/input/text-input-controller.html&quot; with a fix to bug 5230 
being applied. Used to work fine before - apparently, some recent checkin has changed the behavior of 
hitTest().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23950</commentid>
    <comment_count>1</comment_count>
      <attachid>4674</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-11-12 07:41:25 -0800</bug_when>
    <thetext>Created attachment 4674
naive fix

I couldn&apos;t find the reason why the behavior has changed - but the check for nil
seems necessary here nonetheless.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24033</commentid>
    <comment_count>2</comment_count>
      <attachid>4674</attachid>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2005-11-14 14:19:51 -0800</bug_when>
    <thetext>Comment on attachment 4674
naive fix

As long as it&apos;s correct for hitTest to not find a node in this case, r=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24117</commentid>
    <comment_count>3</comment_count>
    <who name="Justin Garcia">justin.garcia</who>
    <bug_when>2005-11-15 11:14:57 -0800</bug_when>
    <thetext>Landed</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4674</attachid>
            <date>2005-11-12 07:41:25 -0800</date>
            <delta_ts>2005-11-14 14:19:51 -0800</delta_ts>
            <desc>naive fix</desc>
            <filename>CheckNodePatch.txt</filename>
            <type>text/plain</type>
            <size>738</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">SW5kZXg6IGt3cS9XZWJDb3JlQnJpZGdlLm1tCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnMvcm9v
dC9XZWJDb3JlL2t3cS9XZWJDb3JlQnJpZGdlLm1tLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjQy
NgpkaWZmIC1wIC11IC1yMS40MjYga3dxL1dlYkNvcmVCcmlkZ2UubW0KLS0tIGt3cS9XZWJDb3Jl
QnJpZGdlLm1tCTkgTm92IDIwMDUgMDI6NDY6MjkgLTAwMDAJMS40MjYKKysrIGt3cS9XZWJDb3Jl
QnJpZGdlLm1tCTEyIE5vdiAyMDA1IDE1OjM5OjQxIC0wMDAwCkBAIC0xOTMxLDcgKzE5NDEsNyBA
QCBzdGF0aWMgSFRNTEZvcm1FbGVtZW50SW1wbCAqZm9ybUVsZW1lbnRGCiAgICAgUmVuZGVyT2Jq
ZWN0OjpOb2RlSW5mbyBub2RlSW5mbyh0cnVlLCB0cnVlKTsKICAgICByZW5kZXJlci0+bGF5ZXIo
KS0+aGl0VGVzdChub2RlSW5mbywgKGludClwb2ludC54LCAoaW50KXBvaW50LnkpOwogICAgIE5v
ZGVJbXBsICpub2RlID0gbm9kZUluZm8uaW5uZXJOb2RlKCk7Ci0gICAgaWYgKCFub2RlLT5yZW5k
ZXJlcigpKQorICAgIGlmICghbm9kZSB8fCAhbm9kZS0+cmVuZGVyZXIoKSkKICAgICAgICAgcmV0
dXJuIFZpc2libGVQb3NpdGlvbigpOwogICAgIAogICAgIHJldHVybiBub2RlLT5yZW5kZXJlcigp
LT5wb3NpdGlvbkZvckNvb3JkaW5hdGVzKChpbnQpcG9pbnQueCwgKGludClwb2ludC55KTsK
</data>
<flag name="review"
          id="849"
          type_id="1"
          status="+"
          setter="justin.garcia"
    />
          </attachment>
      

    </bug>

</bugzilla>