[Webkit-unassigned] [Bug 125973] New: Paragraphs contains <i></i> will causing insertList to freeze the browser

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 18 19:57:06 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=125973

           Summary: Paragraphs contains <i></i> will causing insertList to
                    freeze the browser
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.9
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pepsin at me.com


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.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list