Bug 131582 - 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
Summary: Making a set of paragraphs into list items—using `execCommand`—freezes if the...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.9
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-12 06:57 PDT by Bjarne Mogstad
Modified: 2014-04-12 06:58 PDT (History)
0 users

See Also:


Attachments
Steps to reproduce (290 bytes, text/html)
2014-04-12 06:58 PDT, Bjarne Mogstad
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bjarne Mogstad 2014-04-12 06:57:48 PDT
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;`
Comment 1 Bjarne Mogstad 2014-04-12 06:58:56 PDT
Created attachment 229204 [details]
Steps to reproduce