<?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>56644</bug_id>
          
          <creation_ts>2011-03-18 07:25:50 -0700</creation_ts>
          <short_desc>chrome.dll!WebCore::positionAvoidingPrecedingNodes ReadAV@NULL (586c6d571697e9318ad053888f701434)</short_desc>
          <delta_ts>2011-04-03 08:28:29 -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>PC</rep_platform>
          <op_sys>Windows Vista</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>56771</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Berend-Jan Wever">skylined</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>369616</commentid>
    <comment_count>0</comment_count>
      <attachid>86162</attachid>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2011-03-18 07:25:50 -0700</bug_when>
    <thetext>Created attachment 86162
Repro

Chromium: http://code.google.com/p/chromium/issues/detail?id=76675
Repro:
&lt;body onload=&quot;go()&quot;&gt;&lt;/body&gt;
&lt;script&gt;
  function go() {
    document.open();
    document.designMode=&quot;on&quot;;
    var oSelection = window.getSelection();
    oSelection.setPosition(document,6);
    document.write(&quot;x&quot;);
    document.execCommand(&quot;InsertImage&quot;);
  }
&lt;/script&gt;

id:             chrome.dll!WebCore::positionAvoidingPrecedingNodes ReadAV@NULL (586c6d571697e9318ad053888f701434)
description:    Attempt to read from unallocated NULL pointer+0x24 in chrome.dll!WebCore::positionAvoidingPrecedingNodes
stack:          chrome.dll!WebCore::positionAvoidingPrecedingNodes
                chrome.dll!WebCore::ReplaceSelectionCommand::doApply
                chrome.dll!WebCore::EditCommand::apply
                chrome.dll!WebCore::applyCommand
                chrome.dll!WebCore::executeInsertFragment
                chrome.dll!WebCore::executeInsertNode
                chrome.dll!WebCore::executeInsertImage
                chrome.dll!WebCore::Editor::Command::execute
                chrome.dll!WebCore::Document::execCommand
                chrome.dll!WebCore::DocumentInternal::execCommandCallback
                chrome.dll!v8::internal::HandleApiCallHelper&lt;...&gt;
                chrome.dll!v8::internal::Builtin_HandleApiCall
                chrome.dll!v8::internal::Invoke
                chrome.dll!v8::internal::Execution::Call
                ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>370974</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-03-21 15:59:49 -0700</bug_when>
    <thetext>I can&apos;t reproduce this crash on Chrome 11.0.696.12 although it hits an assertion on ToT WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>374389</commentid>
    <comment_count>2</comment_count>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2011-03-28 03:54:10 -0700</bug_when>
    <thetext>Have you tried Chrome 12? This reproduces in 12.0.716.0 (79495) for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>378555</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-04-03 08:28:29 -0700</bug_when>
    <thetext>Fixed in http://trac.webkit.org/changeset/82791.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>86162</attachid>
            <date>2011-03-18 07:25:50 -0700</date>
            <delta_ts>2011-03-18 07:25:50 -0700</delta_ts>
            <desc>Repro</desc>
            <filename>repro.html</filename>
            <type>text/html</type>
            <size>269</size>
            <attacher name="Berend-Jan Wever">skylined</attacher>
            
              <data encoding="base64">PGJvZHkgb25sb2FkPSJnbygpIj48L2JvZHk+CjxzY3JpcHQ+CiAgZnVuY3Rpb24gZ28oKSB7CiAg
ICBkb2N1bWVudC5vcGVuKCk7CiAgICBkb2N1bWVudC5kZXNpZ25Nb2RlPSJvbiI7CiAgICB2YXIg
b1NlbGVjdGlvbiA9IHdpbmRvdy5nZXRTZWxlY3Rpb24oKTsKICAgIG9TZWxlY3Rpb24uc2V0UG9z
aXRpb24oZG9jdW1lbnQsNik7CiAgICBkb2N1bWVudC53cml0ZSgieCIpOwogICAgZG9jdW1lbnQu
ZXhlY0NvbW1hbmQoIkluc2VydEltYWdlIik7CiAgfQo8L3NjcmlwdD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>