mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 08:51:04 +00:00

When getting suggestions from spellchecker's result, we use sync IPC (`PRemoteSpellcheckEngine.CheckAndSuggest`). This is used by showing context menu only on Gecko. So I think that we can remove this IPC if we add async API to get spellchecker suggestions. And in comm-central's code, `CheckCurrentWord` and `GetSuggestedWord` seems to use on spellchecker dialog (content/dialogs/EdSpellCheck.js in mail and suite) that runs on parent process. So c-c won't use this IPC method. So I would like to add the promise version of getting spellchecker's suggestion. Differential Revision: https://phabricator.services.mozilla.com/D119936