Closed Bug 1719110 Opened 3 years ago Closed 3 years ago

Don't use PRemoteSpellcheckEngine.CheckAndSuggest sync API on Firefox

Categories

(Core :: Spelling checker, enhancement)

Unspecified
All
enhancement

Tracking

()

RESOLVED FIXED
93 Branch
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.

Blocks: 1541697

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.

To avoid sync IPC, we should use new promise based API instead.

Depends on D119936

Attachment #9231264 - Attachment description: Bug 1719110 - Use nsIEditorSpellCheck.suggest instead in Firefox. r=Gijs → Bug 1719110 - Don't use sync IPC to show suggestion by spellchecker. r=Gijs
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
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
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

(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

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: