DescriptionFix bug where misspelling underline is not removed properly
I made a change in https://codereview.chromium.org/2755013004 that significantly
changed how DocumentMarkers are updated in response to text editing operations.
In particular, I made a change that means replacing exactly the range of text
marked by a DocumentMarker will preserve the marker (resizing it if necessary)
on the new piece of text (previously the marker was removed in this case). This
introduced a bug when replacing words using spellcheck suggestions (e.g. from
the right-click context menu) because the current logic just replaces the word
without explictly removing the marker. The fix is to insert an extra step to
explicitly remove the marker.
I have added a test case to hopefully ensure this bug does not reoccur.
Note: this bug does not occur when the Blink feature IdleTimeSpellChecking is
enabled. I believe this is because with the flag enabled, the spellchecker
removes the marker when it rechecks the word in the background.
BUG=722721
Patch Set 1 #
Total comments: 2
Messages
Total messages: 15 (5 generated)
|