Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Issue 1570733002: [Editing][BugFix] Check editability in InserListCommand::listifyParagraph (Closed)

Created:
4 years, 11 months ago by yoichio
Modified:
4 years, 9 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Editing][BugFix] Check editability in InserListCommand::listifyParagraph The listifyParagraph(pos,listtag) function roughly does: 1. Insert a listtag(ol or ul) element. 2. Move a paragraph over pos into the list element. Then the paragraph should be editable. Without that check, attached layout test failed in insertNodeAt at L414. Main change is on L365 and other are about renaming BUG=574228

Patch Set 1 #

Total comments: 6

Patch Set 2 : Clean up #

Patch Set 3 : update #

Patch Set 4 : try #

Patch Set 5 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/editing/execCommand/insertunorderedlist-crash-in-domsubtreemodified-event.html View 1 2 4 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
yosin_UTC9
https://codereview.chromium.org/1570733002/diff/1/third_party/WebKit/LayoutTests/editing/execCommand/insertunorderedlist-crash-in-domsubtreemodified-event.html File third_party/WebKit/LayoutTests/editing/execCommand/insertunorderedlist-crash-in-domsubtreemodified-event.html (right): https://codereview.chromium.org/1570733002/diff/1/third_party/WebKit/LayoutTests/editing/execCommand/insertunorderedlist-crash-in-domsubtreemodified-event.html#newcode10 third_party/WebKit/LayoutTests/editing/execCommand/insertunorderedlist-crash-in-domsubtreemodified-event.html:10: document.addEventListener("DOMSubtreeModified", function (event) { Can we repro this w/o ...
4 years, 11 months ago (2016-01-12 05:51:44 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1570733002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1570733002/20001
4 years, 11 months ago (2016-01-12 07:07:27 UTC) #5
yosin_UTC9
C++ changes seems good. I would like to get replies for comments about layout test ...
4 years, 11 months ago (2016-01-12 08:44:49 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-12 08:52:02 UTC) #8
yosin_UTC9
4 years, 11 months ago (2016-01-28 04:38:39 UTC) #11
It seems crbug.com/574228 no more crash, according to both CF and my local
desktop execution.

Since, crrev.com/1612983003 passes updated selection to execCommand(),
InsertListCommand doesn't fall into situation describe in a patch description.

Powered by Google App Engine
This is Rietveld 408576698