New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 722721 link

Starred by 5 users

Issue metadata

Status: Archived
Owner:
Last visit > 30 days ago
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Spelling suggestions to not remove red underline after being chosen

Reported by tic...@gmail.com, May 16 2017

Issue description

Chrome Version       : 59.0.3071.47
OS Version: 9460.34.0
URLs (if applicable) :
Other browsers tested:
  Add OK or FAIL after other browsers where you have tested this issue:
     Safari 5:
  Firefox 4.x:
     IE 7/8/9:

What steps will reproduce the problem?
1. Misspell a word in any 'text box' environment
2. Observe red-underlining
3. Right-click (2-finger tap) to choose correct spelling


What is the expected result?
The word is replaced and red-underlining is removed

What happens instead of that?
Red-underlining remains 

Please provide any additional information below. Attach a screenshot if
possible.

UserAgentString: Mozilla/5.0 (X11; CrOS x86_64 9460.34.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.47 Safari/537.36



 
Screenshot 2017-05-16 at 07.10.52.png
6.0 KB View Download
Components: Blink>Editing>Spellcheck UI>Browser>Language>Spellcheck

Comment 2 by yosin@chromium.org, May 19 2017

Cc: rlanday@chromium.org
Status: Available (was: Unconfirmed)
Reproducable on 60.0.3103.0 (Official Build) canary (64-bit) (cohort: 64-Bit)

SpellChecker::ReplaceMisspelledRange()? or DMC marker updates?


Comment 3 by yosin@chromium.org, May 19 2017

Labels: Needs-Bisect
Please do bisect to identify the patch to make this...

Comment 4 by yosin@chromium.org, May 19 2017

Could not reproduce on 58.0.3029.110 (Official Build) (64-bit)
Repros for me on Mac Canary (yosin says he tested on Windows and it also repros there). Does not repro for me on:

- Linux Chrome built from master
- Linux binaries from bisect tool
- Mac binaries from bisect tool

This seems to indicate there's some sort of configuration issue involved.
Owner: rlanday@chromium.org
Status: Started (was: Available)
Seems to only repro with idle-time spellchecking *disabled*

(can be toggled in chrome://flags)
Project Member

Comment 9 by bugdroid1@chromium.org, May 24 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/25c86433d672606b4daaceecc589664365d63ddf

commit 25c86433d672606b4daaceecc589664365d63ddf
Author: rlanday <rlanday@chromium.org>
Date: Wed May 24 10:54:37 2017

Split DMLEditor::ShiftMarkers() into content-dependent and -independent versions

I modified the logic that updates DocumentMarker in response to edit operations
in https://codereview.chromium.org/2755013004. However, it introduced a bug when
doing spellcheck replace (the old behavior removed the marker when the marked
text was changed and the new behavior doesn't).

This CL renames DocumentMarkerListEditor::ShiftMarkers() to
ShiftMarkersContentIndependent() and adds a new method that implements the old
behavior as ShiftMarkersContentDependent(). Spelling, Grammar, and TextMatch
markers should be removed when the text they mark changes, so those marker list
impls are being changed to use the old behavior. Composition markers don't
depend on the text they mark, so they're still using the new behavior (although
in practice it doesn't matter much since Composition markers are cleared by most
editing operations). Where we really need the new behavior is to implement
Android SuggestionSpan support (see  crbug.com/672259 ).

As all non-Composition markers currently use the ContentDependent behavior, I
had to remove/change the expected behavior for a lot of InputMethodController
tests that were testing the new update behavior.

BUG= 707867 , 722721 

Review-Url: https://codereview.chromium.org/2895353003
Cr-Commit-Position: refs/heads/master@{#474245}

[modify] https://crrev.com/25c86433d672606b4daaceecc589664365d63ddf/third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp
[modify] https://crrev.com/25c86433d672606b4daaceecc589664365d63ddf/third_party/WebKit/Source/core/editing/markers/CompositionMarkerListImpl.cpp
[modify] https://crrev.com/25c86433d672606b4daaceecc589664365d63ddf/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp
[modify] https://crrev.com/25c86433d672606b4daaceecc589664365d63ddf/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h
[modify] https://crrev.com/25c86433d672606b4daaceecc589664365d63ddf/third_party/WebKit/Source/core/editing/markers/SpellCheckMarkerListImpl.cpp
[modify] https://crrev.com/25c86433d672606b4daaceecc589664365d63ddf/third_party/WebKit/Source/core/editing/markers/TextMatchMarkerListImpl.cpp

Comment 10 by tic...@gmail.com, May 31 2017

I can confirm it is fixed in:

Version 60.0.3112.0 dev (64-bit)
Platform 9592.0.0 (Official Build) dev-channel link
Firmware Google_Link.2695.1.169

Thanks for you help with this :-)

- Mike
Cc: yosin@chromium.org xiaoche...@chromium.org
I think we decided that merging the fix we ended up going with into the release branch would incur too much risk. So this bug will go out in M59 and be fixed in M60. yosin@, xiaochengh@, is that correct?
Labels: -Needs-Bisect Merge-Request-59
After discussing with yosin@ and xiaochengh@, we think this is safe to merge.
Project Member

Comment 14 by sheriffbot@chromium.org, Jun 2 2017

Labels: -Merge-Request-59 Merge-Review-59 Hotlist-Merge-Review
This bug requires manual review: We are only 3 days from stable.
Please contact the milestone owner if you have questions.
Owners: amineer@(Android), cmasso@(iOS), gkihumba@(ChromeOS), Abdul Syed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Only 3 days from stable? Hmm...
Labels: -Hotlist-Merge-Review -Merge-Review-59
Status: Fixed (was: Started)
Will be fixed in M60
 Issue 733144  has been merged into this issue.
Cc: rtillilie@chromium.org vkhabarov@google.com abdulsyed@google.com vkhabarov@chromium.org
 Issue 735041  has been merged into this issue.
Labels: VerifyIn-61

Comment 21 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)

Sign in to add a comment