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

Issue 2749153003: Add null position check in SpellChecker::findFirstMisspelling (Closed)

Created:
3 years, 9 months ago by Xiaocheng
Modified:
3 years, 9 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews, groby+blinkspell_chromium.org, timvolodine
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add null position check in SpellChecker::findFirstMisspelling SpelChecker::findFirstMisspelling iteratively finds misspelling from each paragraph. This patch adds null position check when finding the next paragraph, so that it doesn't crash if the next paragraph cannot be found (i.e., null position returned). BUG=701309 TEST=SpellCheckerTest.AdvanceToNextMisspellingWithImageInTableNoCrash Review-Url: https://codereview.chromium.org/2749153003 Cr-Commit-Position: refs/heads/master@{#457182} Committed: https://chromium.googlesource.com/chromium/src/+/2a016d864e0798bef9150b0c1dbc284ba43a77fa

Patch Set 1 #

Patch Set 2 : Add bug number #

Total comments: 2

Patch Set 3 : Wed Mar 15 11:10:41 PDT 2017 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -0 lines) Patch
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp View 1 2 1 chunk +16 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (12 generated)
Xiaocheng
PTAL.
3 years, 9 months ago (2017-03-15 02:21:55 UTC) #7
yosin_UTC9
lgtm w/ small nit https://codereview.chromium.org/2749153003/diff/20001/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp (right): https://codereview.chromium.org/2749153003/diff/20001/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp#newcode57 third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp:57: document().frame()->editor().executeCommand("AdvanceToNextMisspelling")); It is better to ...
3 years, 9 months ago (2017-03-15 03:50:48 UTC) #10
Xiaocheng
Thanks for reviewing. https://codereview.chromium.org/2749153003/diff/20001/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp (right): https://codereview.chromium.org/2749153003/diff/20001/third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp#newcode57 third_party/WebKit/Source/core/editing/spellcheck/SpellCheckerTest.cpp:57: document().frame()->editor().executeCommand("AdvanceToNextMisspelling")); On 2017/03/15 at 03:50:48, yosin_UTC9 ...
3 years, 9 months ago (2017-03-15 18:12:26 UTC) #12
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/2749153003/40001
3 years, 9 months ago (2017-03-15 18:12:49 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 20:15:14 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/2a016d864e0798bef9150b0c1dbc...

Powered by Google App Engine
This is Rietveld 408576698