gecko-dev/toolkit
Kan-Ru Chen ffab50c6f8 Bug 1313200 - Allow IPC messages to async return MozPromises. r=billm,jwwang
This patch implements async returns for IPDL using MozPromises. There
are following changes:

* Initialize AbstractThreads for MessageLoops
* Record promises and their reject functions
  * When async message returns, call their resolve functions
  * When send error or channel close, call their reject functions
* Implement "unresolved-ipc-promises" count for about:memory
* Test cases

See bug attachment for generated code from test cases

MozReview-Commit-ID: 7xmg8gwDGaW

--HG--
rename : ipc/ipdl/test/ipdl/error/AsyncReturn.ipdl => ipc/ipdl/test/ipdl/ok/AsyncReturn.ipdl
extra : rebase_source : 9a5821d6c0e5f7152b8152a17a409b94e8258dc3
2017-03-16 17:36:15 +08:00
..
components Bug 1357745 - Disable the shutdown ping sender. r=gfritzsche 2017-04-19 16:11:49 +02:00
content Bug 1348253 - about:url-classifier: Providers information and update button. r=francois 2017-04-19 00:33:08 +08:00
crashreporter Bug 1357323 - Remove support for gonk in the build system. r=gps 2017-04-18 16:56:09 +09:00
forgetaboutsite Bug 1355161 - script-generated patch to replace .{currentThread,mainThread}.dispatch(..., Ci.nsIThread.DISPATCH_NORMAL) with .dispatchToMainThread(...), r=froydnj. 2017-04-14 18:29:12 +02:00
library Bug 1357323 - Remove support for gonk in the build system. r=gps 2017-04-18 16:56:09 +09:00
locales Bug 1348253 - about:url-classifier: Providers information and update button. r=francois 2017-04-19 00:33:08 +08:00
modules Bug 1326298 implement off-main-thread delivery with start/stop/error listeners, r=kmag 2017-04-18 15:50:53 -07:00
mozapps Backed out changeset 60d72c2dd49d (bug 1346616) for eslint failure in DirectoryLinksProvider.jsm. r=backout on a CLOSED TREE 2017-04-18 00:48:16 +02:00
pluginproblem
profile Bug 1347358 - Add a Cleanup() function for profile locks. r=glandium 2017-03-23 18:02:10 +01:00
system Bug 1351067 - add BUG_COMPONENT to toolkit/* files. r=myk,enndeakin,mossop 2017-04-09 05:43:43 -04:00
themes Bug 1356904 - Remove border and background fallback styling from numberbox.css. r=nhnt11 2017-04-18 15:25:30 +02:00
xre Bug 1313200 - Allow IPC messages to async return MozPromises. r=billm,jwwang 2017-03-16 17:36:15 +08:00
.eslintrc.js Bug 1347712 - Move toolkit/.eslintrc.js rules into a 'recommended' set within eslint-plugin-mozilla. r=jaws 2017-03-22 10:43:00 +01:00
moz.build Bug 1313045 - Remove toolkit/identity, part2: Move used files/bits to services/crypto and remove remaining files in toolkit/identity. r=MattN. 2017-01-23 20:43:35 +01:00
moz.configure Bug 1357323 - Remove support for gonk in the build system. r=gps 2017-04-18 16:56:09 +09:00
nss.configure
toolkit.mozbuild Bug 1357328 - Remove media/webrtc/signaling/test/moz.build. r=jesup 2017-04-18 17:37:58 +09:00