New issue
Advanced search Search tips

Issue 653732 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Compat



Sign in to add a comment

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.
 
insert.html
2.4 KB View Download

Comment 1 by co...@streak.com, Oct 6 2016

This also affects document.execCommand('insertUnorderedList');. Changing the example html file to use insertUnorderedList instead of insertOrderedList doesn't prevent the hang.
Components: Blink>Editing Blink>DOM
Adding Blink> components.

Does this reproduce only on Mac, or does it reproduce on other platforms?

Comment 3 by tkent@chromium.org, Oct 28 2016

Components: -Blink>DOM
Status: Available (was: Unconfirmed)
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.

Comment 5 by yosin@chromium.org, Jun 13 2017

Components: -Blink>Editing Blink>Editing>Command
Status: WontFix (was: Available)
Mark "WontFix" because I could not reproduce this on 58.0.3029.110 (Official Build) (64-bit)

Sign in to add a comment