Closed Bug 1512214 Opened 6 years ago Closed 5 years ago

Chain promises rather than passing raw pointers.

Categories

(Core :: Spelling checker, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: jya, Assigned: jya)

References

Details

Attachments

(1 file)

While searching for implementation example of IPDL MozPromise I stumbled upon some scary use of promises like:

https://searchfox.org/mozilla-central/rev/3fdc51e66c9487b39220ad58dcee275fca070ccd/extensions/spellcheck/hunspell/glue/RemoteSpellCheckEngineChild.cpp#23

Promises can simply be chained here, no need for using raw pointers to MozPromiseHolder
https://hg.mozilla.org/mozilla-central/rev/a126bd4f1ae9
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: