<?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>32424</bug_id>
          
          <creation_ts>2009-12-11 04:43:34 -0800</creation_ts>
          <short_desc>WebCore::ReplaceSelectionCommand::doApply ReadAV@NULL (15d09a1a5a07b619154c5a2a36579bfd)</short_desc>
          <delta_ts>2009-12-31 02:32:09 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows Vista</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>32823</dup_id>
          
          <bug_file_loc>http://skypher.com/SkyLined/Repro/WebKit/Bug%2032424%20-%20WebCore..ReplaceSelectionCommand..doApply%20ReadAV@NULL%20(15d09a1a5a07b619154c5a2a36579bfd)/repro.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Berend-Jan Wever">skylined</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>enrica</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>170693</commentid>
    <comment_count>0</comment_count>
      <attachid>44671</attachid>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2009-12-11 04:43:34 -0800</bug_when>
    <thetext>Created attachment 44671
Repro

Id:          WebCore::ReplaceSelectionCommand::doApply ReadAV@NULL (15d09a1a5a07b619154c5a2a36579bfd)
Description: Attempt to read from NULL pointer (+0x25) in WebCore::ReplaceSelectionCommand::doApply
Stack:
  WebCore::ReplaceSelectionCommand::doApply
  WebCore::EditCommand::apply
  WebCore::applyCommand
  WebCore::executeInsertFragment
  WebCore::executeInsertHTML
  WebCore::Editor::Command::execute
  WebCore::Document::execCommand
  WebCore::DocumentInternal::execCommandCallback
  v8::internal::Builtin_HandleApiCall
  v8::internal::Invoke
  v8::internal::Execution::Call
  v8::Script::Run
  WebCore::V8Proxy::runScript
  WebCore::V8Proxy::evaluate
  WebCore::ScriptController::evaluate
  WebCore::ScriptController::executeScript
  WebCore::ScriptController::executeScript
  WebCore::ScriptController::executeIfJavaScriptURL
  WebCore::FrameLoader::changeLocation
  WebCore::RedirectScheduler::timerFired
  WebCore::Timer&lt;...&gt;::fired
  WebCore::ThreadTimers::sharedTimerFiredInternal
  MessageLoop::RunTask
  MessageLoop::DoWork
  base::MessagePumpDefault::Run
  MessageLoop::RunInternal
  MessageLoop::Run
  RendererMain
  ChromeMain

Repro:
&lt;BODY onload=go()&gt;&lt;/BODY&gt;
&lt;SCRIPT&gt;
  function go() {
    document.execCommand(&quot;selectall&quot;,false,6);
    document.designMode=&quot;on&quot;;
    document.execCommand(&quot;Cut&quot;,false,2);
    document.execCommand(&quot;inserthorizontalrule&quot;,&quot;&quot;);
    document.execCommand(&quot;Delete&quot;,false, &quot;&quot;);
    document.designMode=&quot;&quot;;
    document.execCommand(&quot;Undo&quot;,&quot;&quot;);
    document.designMode=&quot;on&quot;;
    document.execCommand(&quot;InsertHTML&quot;,false,&quot;&quot;);
  }
&lt;/SCRIPT&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>170694</commentid>
    <comment_count>1</comment_count>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2009-12-11 04:44:39 -0800</bug_when>
    <thetext>Online repro</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>176161</commentid>
    <comment_count>2</comment_count>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2009-12-31 02:32:09 -0800</bug_when>
    <thetext>Mike Moretti claims there is a problem with &quot;Undo&quot; after &quot;designmode off&quot;.
https://bugs.webkit.org/show_bug.cgi?id=32822
I am assuming this is a variation of that problem.

*** This bug has been marked as a duplicate of bug 32823 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>44671</attachid>
            <date>2009-12-11 04:43:34 -0800</date>
            <delta_ts>2009-12-11 04:43:34 -0800</delta_ts>
            <desc>Repro</desc>
            <filename>repro.html</filename>
            <type>text/html</type>
            <size>427</size>
            <attacher name="Berend-Jan Wever">skylined</attacher>
            
              <data encoding="base64">PEJPRFkgb25sb2FkPWdvKCk+PC9CT0RZPgo8U0NSSVBUPgogIGZ1bmN0aW9uIGdvKCkgewogICAg
ZG9jdW1lbnQuZXhlY0NvbW1hbmQoInNlbGVjdGFsbCIsZmFsc2UsNik7CiAgICBkb2N1bWVudC5k
ZXNpZ25Nb2RlPSJvbiI7CiAgICBkb2N1bWVudC5leGVjQ29tbWFuZCgiQ3V0IixmYWxzZSwyKTsK
ICAgIGRvY3VtZW50LmV4ZWNDb21tYW5kKCJpbnNlcnRob3Jpem9udGFscnVsZSIsIiIpOwogICAg
ZG9jdW1lbnQuZXhlY0NvbW1hbmQoIkRlbGV0ZSIsZmFsc2UsICIiKTsKICAgIGRvY3VtZW50LmRl
c2lnbk1vZGU9IiI7CiAgICBkb2N1bWVudC5leGVjQ29tbWFuZCgiVW5kbyIsIiIpOwogICAgZG9j
dW1lbnQuZGVzaWduTW9kZT0ib24iOwogICAgZG9jdW1lbnQuZXhlY0NvbW1hbmQoIkluc2VydEhU
TUwiLGZhbHNlLCIiKTsKICB9CjwvU0NSSVBUPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>