document.execCommand('insertOrderedList'); can hang browser on removing list
Reported by
co...@streak.com,
Oct 6 2016
|
|||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
Example URL:
Steps to reproduce the problem:
Open the attached HTML file in Chrome and press the buttons as it instructs.
The page has a contenteditable div that it inserts some HTML into ("<div contenteditable="false">...</div>"), it selects all of the editable div's children, and then runs document.execCommand('insertOrderedList'); twice to insert and then remove an ordered list containing the selected content.
What is the expected behavior?
The browser should remove the ordered list.
What went wrong?
The browser tab hangs forever.
Does it occur on multiple sites: N/A
Is it a problem with a plugin? N/A
Did this work before? N/A
Does this work in other browsers? N/A
Chrome version: 53.0.2785.143 Channel: stable
OS Version: OS X 10.11.4
Flash Version: Shockwave Flash 23.0 r0
* The issue also exists in Safari, but not Firefox.
* The hang can be encountered by a user in Gmail after using the "Dropbox for Gmail" Chrome extension and Gmail's formatting options.
* The requirements to hang seem very specific: removing the height rules or the img element from the HTML inserted into the contenteditable prevents the hang from happening for example.
* Might be related to Issue 571420 , though this hang occurs on removing the list and seems to have much more specific requirements.
,
Oct 25 2016
Adding Blink> components. Does this reproduce only on Mac, or does it reproduce on other platforms?
,
Oct 28 2016
,
Nov 1 2016
I can reproduce it on Linux 54.0.2840.71 (Official Build) (64-bit). Beautiful repro, thank you. The renderer hangs; the browser seems responsive.
,
Jun 13 2017
Mark "WontFix" because I could not reproduce this on 58.0.3029.110 (Official Build) (64-bit) |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by co...@streak.com
, Oct 6 2016This also affects document.execCommand('insertUnorderedList');. Changing the example html file to use insertUnorderedList instead of insertOrderedList doesn't prevent the hang.