Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in

Issue 2250133004: No hang when inserting a list over uneditable element in contenteditable (Closed)

Can't Edit
Can't Publish+Mail
Start Review
1 year ago by joone
1 year ago
blink-reviews, chromium-reviews
Base URL:
Target Ref:


No hang when inserting a list over uneditable element in contenteditable While firstEditablePositionAfterPositionInRootAlgorithm() is running, we can get the next editable paragraph under the highest editable node by skipping non-editable paragraph. However, if an editable paragraph has a non-editable child, the next paragraph can be the same editable paragraph that is the parent of the non-editable child. In this case, we can't get the next editable paragraph in InsertListCommand::doApply's while loop. As a result, the while loop can't break, which makes the tab hang. Here is the example: <div contenteditable="true"> <p>line1<button contenteditable="false">hello</button></p> <p>line2</p> </div> This CL allows to get the next editable paragraph by considering the non-editable child element. BUG=571420 TEST=editing/selection/insert-list-over-uneditable-in-contenteditable.html Committed: Cr-Commit-Position: refs/heads/master@{#412925}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove extra blanks in the test case #


Total messages: 16 (10 generated)
Hi yosin@ please review this CL.
1 year ago (2016-08-18 07:12:29 UTC) #4
lgtm w/ small nits Wonderful! File third_party/WebKit/LayoutTests/editing/selection/insert-list-over-uneditable-in-contenteditable.html (right): third_party/WebKit/LayoutTests/editing/selection/insert-list-over-uneditable-in-contenteditable.html:6: nit: we don't need ...
1 year ago (2016-08-18 08:45:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at
1 year ago (2016-08-18 18:21:50 UTC) #11
Thanks for review! File third_party/WebKit/LayoutTests/editing/selection/insert-list-over-uneditable-in-contenteditable.html (right): third_party/WebKit/LayoutTests/editing/selection/insert-list-over-uneditable-in-contenteditable.html:6: On 2016/08/18 08:45:26, Yosi_UTC9 wrote: > ...
1 year ago (2016-08-18 18:22:05 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
1 year ago (2016-08-18 20:28:36 UTC) #14
commit-bot: I haz the power
1 year ago (2016-08-18 20:29:55 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
Cr-Commit-Position: refs/heads/master@{#412925}
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld b40b6558b