<?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>32422</bug_id>
          
          <creation_ts>2009-12-11 04:24:09 -0800</creation_ts>
          <short_desc>InsertUnorderedList falls into an infinite loop because startOfCurrentParagraph stays on the same node</short_desc>
          <delta_ts>2011-08-01 09:41:26 -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>http://skypher.com/SkyLined/Repro/WebKit/Bug%2032422%20-%20execCommand%20100%25%20CPU%20usage/repro.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>42436</dependson>
    
    <dependson>36430</dependson>
    
    <dependson>41403</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Berend-Jan Wever">skylined</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>enrica</cc>
    
    <cc>eric</cc>
    
    <cc>rniwa</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>170686</commentid>
    <comment_count>0</comment_count>
      <attachid>44669</attachid>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2009-12-11 04:24:09 -0800</bug_when>
    <thetext>Created attachment 44669
Repro

&lt;BODY&gt;&lt;/BODY&gt;
&lt;SCRIPT&gt;
  document.execCommand(&quot;SelectAll&quot;,false,&quot;&quot;);
  document.designMode=&quot;on&quot;;
  document.execCommand(&quot;InsertParagraph&quot;,false,1);
  document.execCommand(&quot;Indent&quot;,6);
  document.execCommand(&quot;insertimage&quot;,false,&quot;ftp:&quot;);
  document.execCommand(&quot;insertimage&quot;,false);
  document.execCommand(&quot;SelectAll&quot;,3);
  document.execCommand(&quot;subscript&quot;,&quot;&quot;);
  document.execCommand(&quot;insertunorderedlist&quot;,false,3);
&lt;/SCRIPT&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>170688</commentid>
    <comment_count>1</comment_count>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2009-12-11 04:27:14 -0800</bug_when>
    <thetext>Does not affect Safari, only Chrome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202691</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2010-03-22 12:31:55 -0700</bug_when>
    <thetext>I suspect this is a duplicate of the bug 33668.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202757</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2010-03-22 14:30:22 -0700</bug_when>
    <thetext>This bug is caused by startOfCurrentParagraph not moving forward on http://trac.webkit.org/browser/trunk/WebCore/editing/InsertListCommand.cpp#L96.  It stays on the same node while we add more LI elements to the document.  We need to cleanup InsertListCommmand first so that removing/creating list element does not rely on selection.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>444558</commentid>
    <comment_count>4</comment_count>
    <who name="Berend-Jan Wever">skylined</who>
    <bug_when>2011-08-01 00:54:05 -0700</bug_when>
    <thetext>@Ryosuke: the repro loads fast and without crashing for me in Chromium 15.0.840.0 with WebKit 535.1 (@91997). I&apos;m assuming this got fixed together with some of your other changes to code in this area.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>444724</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-01 09:41:26 -0700</bug_when>
    <thetext>As I said on some other bugs, there&apos;s an inherent design issue in IndentOutdentCommand and InsertListCommand, and it&apos;s simply not worth my time to fix any inifinite loop or crash involving these two classes until we come up with a more comprehensive design fix.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>44669</attachid>
            <date>2009-12-11 04:24:09 -0800</date>
            <delta_ts>2009-12-11 04:24:09 -0800</delta_ts>
            <desc>Repro</desc>
            <filename>repro.html</filename>
            <type>text/html</type>
            <size>424</size>
            <attacher name="Berend-Jan Wever">skylined</attacher>
            
              <data encoding="base64">PEJPRFk+PC9CT0RZPgo8U0NSSVBUPgogIGRvY3VtZW50LmV4ZWNDb21tYW5kKCJTZWxlY3RBbGwi
LGZhbHNlLCIiKTsKICBkb2N1bWVudC5kZXNpZ25Nb2RlPSJvbiI7CiAgZG9jdW1lbnQuZXhlY0Nv
bW1hbmQoIkluc2VydFBhcmFncmFwaCIsZmFsc2UsMSk7CiAgZG9jdW1lbnQuZXhlY0NvbW1hbmQo
IkluZGVudCIsNik7CiAgZG9jdW1lbnQuZXhlY0NvbW1hbmQoImluc2VydGltYWdlIixmYWxzZSwi
ZnRwOiIpOwogIGRvY3VtZW50LmV4ZWNDb21tYW5kKCJpbnNlcnRpbWFnZSIsZmFsc2UpOwogIGRv
Y3VtZW50LmV4ZWNDb21tYW5kKCJTZWxlY3RBbGwiLDMpOwogIGRvY3VtZW50LmV4ZWNDb21tYW5k
KCJzdWJzY3JpcHQiLCIiKTsKICBkb2N1bWVudC5leGVjQ29tbWFuZCgiaW5zZXJ0dW5vcmRlcmVk
bGlzdCIsZmFsc2UsMyk7CjwvU0NSSVBUPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>