gecko-dev/extensions/spellcheck
Dan Minor 37130e3638 Bug 1761085 - Check for existence of mEngine in mozSpellChecker; r=smaug
With the changes to EditorSpellCheck::SetFallbackDictionary to use a
promise chain to support calling either SetCurrentDictionaryFromList or
SetCurrentDictionaries as required, it is now possible that
RemoteSpellCheckEngineChild is destroyed by the time the second promise
runs. During destruction, RemoteSpellCheckEngineChild calls
mozSpellChecker::DeleteRemoteEngine, which sets mEngine to nullptr.
This patch adds a nullptr check for mEngine in both
SetCurrentDictionaryFromList and SetCurrentDictionaries.

Differential Revision: https://phabricator.services.mozilla.com/D141983
2022-03-24 19:23:56 +00:00
..
docs hg diff Bug 1695756 - Import the 'Adding a new word to the en-US dictionary' doc r=firefox-source-docs-reviewers,flod,championshuttler DONTBUILD 2021-03-02 13:25:44 +00:00
hunspell Bug 1402822 - Update unit tests for multiple dictionaries; r=smaug 2022-03-23 13:53:39 +00:00
idl Bug 1402822 - Support multiple dictionaries in mozISpellCheckingEngine.idl; r=smaug 2022-03-23 13:53:36 +00:00
locales Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
src Bug 1761085 - Check for existence of mEngine in mozSpellChecker; r=smaug 2022-03-24 19:23:56 +00:00
tests Bug 1402822 - Update unit tests for multiple dictionaries; r=smaug 2022-03-23 13:53:39 +00:00
moz.build hg diff Bug 1695756 - Import the 'Adding a new word to the en-US dictionary' doc r=firefox-source-docs-reviewers,flod,championshuttler DONTBUILD 2021-03-02 13:25:44 +00:00