<?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>131582</bug_id>
          
          <creation_ts>2014-04-12 06:57:48 -0700</creation_ts>
          <short_desc>Making a set of paragraphs into list items—using `execCommand`—freezes if the previous visible sibling—or its children—is a div with `white-space: pre; and has a newline as suffix</short_desc>
          <delta_ts>2014-04-12 06:58:56 -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>Mac (Intel)</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="Bjarne Mogstad">bjarne</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1000189</commentid>
    <comment_count>0</comment_count>
    <who name="Bjarne Mogstad">bjarne</who>
    <bug_when>2014-04-12 06:57:48 -0700</bug_when>
    <thetext>Steps to reproduce:
- Load a DOM with: 
  - `div` styled with `white-space: pre` with a newline as its content
  - a content editable div with two paragraphs 
- Select the two paragraphs
- Execute `insertOrderedList`

(see attached file)

Expected Results:
- The paragraphs get turned into a ordered list with two list items

Actual Results:
- The UA hangs

Notes:
- Also happens for `insertUnorderedList`
- Also happens if the div is styled with `white-space: pre-warp;`</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1000190</commentid>
    <comment_count>1</comment_count>
      <attachid>229204</attachid>
    <who name="Bjarne Mogstad">bjarne</who>
    <bug_when>2014-04-12 06:58:56 -0700</bug_when>
    <thetext>Created attachment 229204
Steps to reproduce</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>229204</attachid>
            <date>2014-04-12 06:58:56 -0700</date>
            <delta_ts>2014-04-12 06:58:56 -0700</delta_ts>
            <desc>Steps to reproduce</desc>
            <filename>insert_ordered_list_freeze.html</filename>
            <type>text/html</type>
            <size>290</size>
            <attacher name="Bjarne Mogstad">bjarne</attacher>
            
              <data encoding="base64">PGRpdiBzdHlsZT0id2hpdGUtc3BhY2U6IHByZTsiPgo8L2Rpdj4KPGRpdiBjb250ZW50ZWRpdGFi
bGU9InRydWUiPjxwPmZpcnN0PC9wPjxwPnNlY29uZDwvcD48L2Rpdj4KPHNjcmlwdD4KICBkb2N1
bWVudC5xdWVyeVNlbGVjdG9yKCJbY29udGVudGVkaXRhYmxlPVwidHJ1ZVwiXSIpLmZvY3VzKCk7
CiAgZG9jdW1lbnQuZXhlY0NvbW1hbmQoInNlbGVjdEFsbCIsIGZhbHNlLCBudWxsKTsKICBkb2N1
bWVudC5leGVjQ29tbWFuZCgiaW5zZXJ0T3JkZXJlZExpc3QiLCBmYWxzZSwgbnVsbCk7Cjwvc2Ny
aXB0Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>