Created attachment 44669 [details] Repro <BODY></BODY> <SCRIPT> document.execCommand("SelectAll",false,""); document.designMode="on"; document.execCommand("InsertParagraph",false,1); document.execCommand("Indent",6); document.execCommand("insertimage",false,"ftp:"); document.execCommand("insertimage",false); document.execCommand("SelectAll",3); document.execCommand("subscript",""); document.execCommand("insertunorderedlist",false,3); </SCRIPT>
Does not affect Safari, only Chrome.
I suspect this is a duplicate of the bug 33668.
This bug is caused by startOfCurrentParagraph not moving forward on http://trac.webkit.org/browser/trunk/WebCore/editing/InsertListCommand.cpp#L96. It stays on the same node while we add more LI elements to the document. We need to cleanup InsertListCommmand first so that removing/creating list element does not rely on selection.
@Ryosuke: the repro loads fast and without crashing for me in Chromium 15.0.840.0 with WebKit 535.1 (@91997). I'm assuming this got fixed together with some of your other changes to code in this area.
As I said on some other bugs, there's an inherent design issue in IndentOutdentCommand and InsertListCommand, and it's simply not worth my time to fix any inifinite loop or crash involving these two classes until we come up with a more comprehensive design fix.