<?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>125973</bug_id>
          
          <creation_ts>2013-12-18 19:55:11 -0800</creation_ts>
          <short_desc>Paragraphs contains &lt;i&gt;&lt;/i&gt; will causing insertList to freeze the browser</short_desc>
          <delta_ts>2013-12-18 19:55:11 -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>Mac</rep_platform>
          <op_sys>OS X 10.9</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pepsin Ye">pepsin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>961245</commentid>
    <comment_count>0</comment_count>
    <who name="Pepsin Ye">pepsin</who>
    <bug_when>2013-12-18 19:55:11 -0800</bug_when>
    <thetext>To reproduce this bug, you can simply try:

&lt;body&gt;&lt;/body&gt;
&lt;script&gt;
  document.body.contentEditable = true;
  document.body.innerHTML = &quot;&lt;p&gt;Test1&lt;/p&gt;&lt;p style=&apos;min-height:14.0px;&apos;&gt;&lt;i&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;Test2&lt;/p&gt;&quot;
  document.execCommand(&quot;SelectAll&quot;);
  document.execCommand(&quot;InsertUnorderedList&quot;);
&lt;/script&gt;

I think it maybe caused by the function &quot;InsertListCommand::listifyParagraph&quot; in  InsertListCommand.cpp, the VisiblePosition judgement may have failed because there&apos;s a i tag contained in the paragraph, but I am not so sure.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>