Bug 125973 - Paragraphs contains <i></i> will causing insertList to freeze the browser
Summary: Paragraphs contains <i></i> will causing insertList to freeze the browser
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.9
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-18 19:55 PST by Pepsin Ye
Modified: 2013-12-18 19:55 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pepsin Ye 2013-12-18 19:55:11 PST
To reproduce this bug, you can simply try:

<body></body>
<script>
  document.body.contentEditable = true;
  document.body.innerHTML = "<p>Test1</p><p style='min-height:14.0px;'><i></i></p><p>Test2</p>"
  document.execCommand("SelectAll");
  document.execCommand("InsertUnorderedList");
</script>

I think it maybe caused by the function "InsertListCommand::listifyParagraph" in  InsertListCommand.cpp, the VisiblePosition judgement may have failed because there's a i tag contained in the paragraph, but I am not so sure.