gecko-dev/editor/spellchecker
Makoto Kato 79bf4210ee Bug 1565919 - Don't separate words by contextual-based character. r=Ehsan
Original regression was by bug 1362858, and bug 1418629 wasn't enough to fix.

By bug 1362858, we use `CHAR_CLASS_SEPARATOR` in additional to DOM word separator. But some characters such as single quote, `@` and etc are `CHAR_CLASS_SEPARATOR`, so we may check spell by incomplete word.

We shouldn't separate word by characters that is email part, URL part or conditional punctuation.

And I also update test cases for this situation. `<textarea>` is better for spell checking since it can has multiple anonymous text nodes.

Differential Revision: https://phabricator.services.mozilla.com/D39829

--HG--
extra : moz-landing-system : lando
2019-08-03 13:44:56 +00:00
..
tests Bug 1565919 - Don't separate words by contextual-based character. r=Ehsan 2019-08-03 13:44:56 +00:00
EditorSpellCheck.cpp Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika 2019-07-26 16:48:31 +00:00
EditorSpellCheck.h Bug 1502661 - Part 2. Add async method to check word by spellchecker. r=masayuki 2018-12-18 20:23:44 +09:00
FilteredContentIterator.cpp Bug 1444847 - part 7: Make `EditorSpellCheck` use `StaticRange` instead of `nsRange` to initialize itself r=smaug 2019-06-28 07:50:36 +00:00
FilteredContentIterator.h Bug 1444847 - part 7: Make `EditorSpellCheck` use `StaticRange` instead of `nsRange` to initialize itself r=smaug 2019-06-28 07:50:36 +00:00
TextServicesDocument.cpp Bug 1444847 - part 7: Make `EditorSpellCheck` use `StaticRange` instead of `nsRange` to initialize itself r=smaug 2019-06-28 07:50:36 +00:00
TextServicesDocument.h Bug 1444847 - part 7: Make `EditorSpellCheck` use `StaticRange` instead of `nsRange` to initialize itself r=smaug 2019-06-28 07:50:36 +00:00
moz.build Bug 181137 - part 6: Make nsFilteredContentIterator not derived from nsIContentIterator r=smaug 2019-01-11 01:51:35 +00:00
nsComposeTxtSrvFilter.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsComposeTxtSrvFilter.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsIInlineSpellChecker.idl Bug 1557231. Stop using [array] in nsIInlineSpellChecker. r=masayuki 2019-06-06 06:59:37 +00:00