Don't use PRemoteSpellcheckEngine.CheckAndSuggest sync API on Firefox
Categories
(Core :: Spelling checker, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox93 | --- | fixed |
People
(Reporter: m_kato, Assigned: m_kato)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
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.
Assignee | ||
Comment 1•4 years ago
|
||
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.
Assignee | ||
Comment 2•4 years ago
|
||
To avoid sync IPC, we should use new promise based API instead.
Depends on D119936
Updated•4 years ago
|
Comment 4•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ac303b3be0b2
https://hg.mozilla.org/mozilla-central/rev/ef67a3710b96
Comment 5•4 years ago
|
||
FYI there's a typo in one of these patches:
https://hg.mozilla.org/mozilla-central/diff/ef67a3710b96e560a484c7d071ad94acae59e682/browser/base/content/nsContextMenu.js
Assignee | ||
Comment 7•4 years ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #5)
FYI there's a typo in one of these patches:
https://hg.mozilla.org/mozilla-central/diff/ef67a3710b96e560a484c7d071ad94acae59e682/browser/base/content/nsContextMenu.js
I filed this as bug 1725599
Description
•