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

Issue 149213006: Replace ASSERT by null-check in InsertedNodes::lastLeafInserted() (Closed)

Created:
6 years, 10 months ago by Inactive
Modified:
6 years, 10 months ago
Reviewers:
adamk
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Replace ASSERT by null-check in InsertedNodes::lastLeafInserted() Replace ASSERT by null-check in InsertedNodes::lastLeafInserted() as m_lastNodeInserted can be null when this method is called. This ASSERT was added in r161096 and we started hitting it in ClusterFuzz. This is also consistent with InsertedNodes::pastLastLeaf() which already had a null check. R=adamk BUG=338982 TEST=editing/execCommand/replaceSelectorCommand-crash.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=166065

Patch Set 1 #

Patch Set 2 : Add layout test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -9 lines) Patch
A LayoutTests/editing/execCommand/replaceSelectorCommand-crash.html View 1 1 chunk +80 lines, -0 lines 0 comments Download
A LayoutTests/editing/execCommand/replaceSelectorCommand-crash-expected.txt View 1 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/editing/ReplaceSelectionCommand.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/ReplaceSelectionCommand.cpp View 2 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Inactive
6 years, 10 months ago (2014-01-29 14:47:55 UTC) #1
adamk
This looks fine (and I'm excited that these reference conversions are actually finding bugs). Ping ...
6 years, 10 months ago (2014-01-29 17:07:56 UTC) #2
Inactive
On 2014/01/29 17:07:56, adamk wrote: > This looks fine (and I'm excited that these reference ...
6 years, 10 months ago (2014-01-29 20:11:24 UTC) #3
adamk
lgtm
6 years, 10 months ago (2014-01-29 20:16:22 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/149213006/20001
6 years, 10 months ago (2014-01-29 20:20:42 UTC) #5
commit-bot: I haz the power
Change committed as 166065
6 years, 10 months ago (2014-01-29 23:58:56 UTC) #6
commit-bot: I haz the power
6 years, 10 months ago (2014-01-30 00:02:43 UTC) #7
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.

Powered by Google App Engine
This is Rietveld 408576698