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

Issue 2109543002: Make SpellChecker::didBeginEdit() not to crash with IFRAME parameter (Closed)

Created:
4 years, 5 months ago by yosin_UTC9
Modified:
4 years, 5 months ago
Reviewers:
yoichio
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 SpellChecker::didBeginEdit() not to crash with elements editing ignore content This patch makes |SpellChecker::didBeginEdit()| not to pass an element which returns true for |editingIgnoresContent(element)|, since |selectionFromContentsOfNode(element)| doesn't accept such elements, to avoid crash with such elements. Since test runner sets false for |unifiedTextCheckerEnabled()|, we have not been aware this. Following patch will make |unifiedTextCheckerEnabled()| to return true always. Following test crashes when |unifiedTextCheckerEnabled()| is true: - editing/execCommand/append-node-under-document.html - editing/text-iterator/backward-textiterator-first-letter-crash.html BUG=619452 TEST=n/a; no user visible changes Committed: https://crrev.com/be44d0ea538814bb21fd76bf562b4247c10f5f9b Cr-Commit-Position: refs/heads/master@{#402714}

Patch Set 1 : 2016-06-28T16:59:23 #

Patch Set 2 : 2016-06-28T17:34:15 #

Total comments: 2

Messages

Total messages: 12 (5 generated)
yosin_UTC9
PTAL
4 years, 5 months ago (2016-06-28 09:26:39 UTC) #3
yoichio
https://codereview.chromium.org/2109543002/diff/20001/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/2109543002/diff/20001/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp#newcode143 third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:143: if (EditingStrategy::editingIgnoresContent(element)) Please add description why crash happens and ...
4 years, 5 months ago (2016-06-29 01:35:57 UTC) #4
yosin_UTC9
PTAL I updated a description. https://codereview.chromium.org/2109543002/diff/20001/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp File third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp (right): https://codereview.chromium.org/2109543002/diff/20001/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp#newcode143 third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp:143: if (EditingStrategy::editingIgnoresContent(element)) On 2016/06/29 ...
4 years, 5 months ago (2016-06-29 02:03:05 UTC) #6
yoichio
lgtm
4 years, 5 months ago (2016-06-29 04:14:42 UTC) #7
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/2109543002/20001
4 years, 5 months ago (2016-06-29 04:21:31 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-06-29 04:25:41 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 04:28:38 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/be44d0ea538814bb21fd76bf562b4247c10f5f9b
Cr-Commit-Position: refs/heads/master@{#402714}

Powered by Google App Engine
This is Rietveld 408576698