WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
125973
Paragraphs contains <i></i> will causing insertList to freeze the browser
https://bugs.webkit.org/show_bug.cgi?id=125973
Summary
Paragraphs contains <i></i> will causing insertList to freeze the browser
Pepsin Ye
Reported
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug