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

Issue 181283002: Fixing a crash in InsertListCommand. (Closed)

Created:
6 years, 10 months ago by yoichio
Modified:
6 years, 9 months ago
Reviewers:
Yuta Kitamura
CC:
blink-reviews, sof, eae+blinkwatch, dglazkov+blink, adamk+blink_chromium.org, Inactive, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fixing a crash in InsertListCommand. There are two crash causes: 1.Range and 2.InsertListCommand. 1. Range: In processAncestorsAndThierSiblings, it iterates siblings and remove each sibling. Because removeChild might kick a “SubtreeModified” event which might change the tree structure, ancestor might be not a parent of child at a next iteration. We should check it. 2. InsertListCommand: The doApply function does nothing when endingSelection().rootEditableElement() is Null. Because L124 setEndingSelection might change endingSelection(), we should check again. BUG=344280 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168006

Patch Set 1 #

Total comments: 10

Patch Set 2 : Update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -7 lines) Patch
A LayoutTests/editing/execCommand/insert-ordered-list-crash.html View 1 1 chunk +39 lines, -0 lines 0 comments Download
A + LayoutTests/editing/execCommand/insert-ordered-list-crash-expected.txt View 1 1 chunk +6 lines, -5 lines 0 comments Download
M Source/core/dom/Range.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/editing/InsertListCommand.cpp View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
yoichio
6 years, 10 months ago (2014-02-26 09:19:30 UTC) #1
Yuta Kitamura
https://codereview.chromium.org/181283002/diff/1/LayoutTests/editing/execCommand/insert-ordered-list-crash.html File LayoutTests/editing/execCommand/insert-ordered-list-crash.html (right): https://codereview.chromium.org/181283002/diff/1/LayoutTests/editing/execCommand/insert-ordered-list-crash.html#newcode12 LayoutTests/editing/execCommand/insert-ordered-list-crash.html:12: <script> Technically, <script> should not appear after <body> is ...
6 years, 10 months ago (2014-02-26 10:41:15 UTC) #2
yoichio
https://codereview.chromium.org/181283002/diff/1/LayoutTests/editing/execCommand/insert-ordered-list-crash.html File LayoutTests/editing/execCommand/insert-ordered-list-crash.html (right): https://codereview.chromium.org/181283002/diff/1/LayoutTests/editing/execCommand/insert-ordered-list-crash.html#newcode12 LayoutTests/editing/execCommand/insert-ordered-list-crash.html:12: <script> On 2014/02/26 10:41:16, Yuta Kitamura wrote: > Technically, ...
6 years, 10 months ago (2014-02-27 04:00:03 UTC) #3
Yuta Kitamura
lgtm
6 years, 10 months ago (2014-02-27 04:03:52 UTC) #4
yoichio
The CQ bit was checked by yoichio@chromium.org
6 years, 10 months ago (2014-02-27 04:07:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoichio@chromium.org/181283002/20001
6 years, 10 months ago (2014-02-27 04:07:16 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-27 08:50:38 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_blink for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_blink&number=14355
6 years, 9 months ago (2014-02-27 08:50:39 UTC) #8
yoichio
The CQ bit was checked by yoichio@chromium.org
6 years, 9 months ago (2014-02-27 09:19:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoichio@chromium.org/181283002/20001
6 years, 9 months ago (2014-02-27 09:19:48 UTC) #10
commit-bot: I haz the power
6 years, 9 months ago (2014-02-27 10:28:17 UTC) #11
Message was sent while issue was closed.
Change committed as 168006

Powered by Google App Engine
This is Rietveld 408576698