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

Issue 2124213002: Make EphemeralRange constructor not to accept invalid start and end positions (Closed)

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

Description

Make EphemeralRange to accept only valid positions This patch introduces |DCHECK_LE(start, end)| for start and end positions of |EphemeralRange| constructor and changing call sites of constructor for wrong start/end parameter case, to catch wrong call sites for improving code health and ease of debugging. This patch is intended to help to find the root cause of crbug.com/624335, which causes null pointer reference for iterating over |nodeAsRangeFirstNode()| of start of range to |nodeAsRangePastLastNode()| of end of range. We would like to know which call site makes this wrong range. BUG=624335 TEST=Covered by existing test Committed: https://crrev.com/4fb42e48b7175ccfabd887dc3ebb80a1697139e7 Cr-Commit-Position: refs/heads/master@{#404308}

Patch Set 1 : 2016-07-07T15:58:08 #

Patch Set 2 : 2016-07-07T18:31:23 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -4 lines) Patch
M third_party/WebKit/Source/core/editing/EphemeralRange.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 1 3 chunks +13 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/TextCheckingHelper.cpp View 1 1 chunk +10 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
yosin_UTC9
PTAL
4 years, 5 months ago (2016-07-08 01:31:21 UTC) #4
yoichio
lgtm
4 years, 5 months ago (2016-07-08 01:50:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2124213002/20001
4 years, 5 months ago (2016-07-08 02:04:52 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-08 02:09:51 UTC) #9
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 02:11:45 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4fb42e48b7175ccfabd887dc3ebb80a1697139e7
Cr-Commit-Position: refs/heads/master@{#404308}

Powered by Google App Engine
This is Rietveld 408576698