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•3 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•3 years ago
|
||
To avoid sync IPC, we should use new promise based API instead.
Depends on D119936
Updated•3 years ago
|
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/ac303b3be0b2 Add nsIEditorSpellCheck.suggest to get rid of PRemoteSpellcheckEngine.CheckAndSuggest. r=masayuki https://hg.mozilla.org/integration/autoland/rev/ef67a3710b96 Don't use sync IPC to show suggestion by spellchecker. r=Gijs
Comment 4•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ac303b3be0b2
https://hg.mozilla.org/mozilla-central/rev/ef67a3710b96
Comment 5•3 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
Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/787ed5864d06 Port bug 1719110 - Don't use sync IPC to show suggestion by spellchecker. rs=bustage-fix
Assignee | ||
Comment 7•3 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
•