gecko-dev/netwerk
Kris Maglione 3e44c16cf9 Bug 1541557: Part 5 - Update callers of ChromeScript.sendSyncMessage to use sendQuery instead. r=nika
Since JSWindowActors don't have direct access to synchronous messaging,
ChromeScript callers are going to need to migrate to asynchronous messaging
and queries instead.

Since there's no comparable API to sendQuery for frame message managers, this
patch adds a stub that uses synchronous messaging, but makes the API appear
asynchronous, and migrates callers to use it instead of direct synchronous
messaging. This will be replaced with a true synchronous API in the actor
migration.

Fortunately, most of the time, this actually leads to simpler code. The
`sendQuery` API doesn't have the odd return value semantics of
`sendSyncMessage`, and can usually just be used as a drop-in replacement. Many
of the `sendSyncMessage` callers don't actually use the result, and can just
be changed to `sendAsyncMessage`. And many of the existing async messaging
users can be changed to just use `sendQuery` rather than sending messages and
adding response listeners.

However, the APZ code is an exception. It relies on intricate properties of
the event loop, and doesn't have an easy way to slot in promise handlers, so I
migrated it to using sync messaging via process message managers instead.

Differential Revision: https://phabricator.services.mozilla.com/D35055

--HG--
extra : rebase_source : d5707e87f293a831a5cf2e0b0a7e977090267f78
extra : source : 75ebd6fce136ab3bd0e591c2b8b2d06d3b5bf923
2019-06-12 12:40:51 -07:00
..
base Bug 1551601 - When performing a cross process redirect update the loadInfo to have the correct browsingContext r=nika 2019-06-30 20:20:51 +00:00
build Bug 1530660: Fix registration for nsSafeFileOutputStream. r=erahm 2019-06-20 15:40:35 -07:00
cache Bug 1557904. Stop using [array] in appcache interfaces. r=mayhemer 2019-06-12 12:02:37 +00:00
cache2
cookie Bug 1410013 - Change aValue parameter of nsICookieManager.add to AUTF8String to align with nsICookie change. r=Ehsan 2019-06-17 20:48:30 +00:00
dns Bug 1083971 - Add an option to output a binary file for the PSL data r=leplatrem,erahm 2019-07-02 12:28:48 +00:00
ipc Bug 1555036 - If there is a Cross-Origin-Opener-Policy mismatch and the SANDBOXED_AUXILIARY_NAVIGATION is set navigate to a network error r=mayhemer 2019-06-14 21:48:51 +00:00
locales
mime
protocol Bug 1562315 - Respect again=false indicated by http2 session when calling through TLSFilterTransaction, r=dragana 2019-07-01 14:26:34 +00:00
sctp Bug 1556795: Add some thread assertions, and remove an unused member. r=ng 2019-06-20 20:24:02 +00:00
socket Backed out 2 changesets (bug 1546816) for causing test_navigation.py and test_js_cert_override_service.js to permafail CLOSED TREE 2019-06-15 10:55:58 +03:00
srtp
streamconv Bug 1478950 - Fix parsing filename in OS/2 FTP listing, r=valentin 2019-06-11 19:18:36 +00:00
system Bug 1561005 - Implement nsINetworkLinkService.networkID on mac r=michal 2019-06-28 12:41:27 +00:00
test Bug 1541557: Part 5 - Update callers of ChromeScript.sendSyncMessage to use sendQuery instead. r=nika 2019-06-12 12:40:51 -07:00
url-classifier Bug 1560040 - Introduce 2 new URL-Classifier features to annotate and block social trackers, r=dimi 2019-06-22 16:53:50 +00:00
wifi Bug 1558553. Stop using [array] in nsIWifiListener. r=valentin 2019-06-11 18:59:50 +00:00
moz.build
necko-config.h.in