gecko-dev/netwerk/test/mochitests
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
..
beltzner.jpg Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
beltzner.jpg^headers^ Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
empty.html
file_1331680.js Bug 1556844 - Enable more ESLint rules for netwerk, (auto & manual) fixes & format changes , r=dragana 2019-06-21 20:13:40 +00:00
file_1502055.sjs
file_1503201.sjs
file_chromecommon.js Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
file_documentcookie_maxage_chromescript.js
file_domain_hierarchy_inner_inner_inner.html Bug 1457503 - Removal of http-equiv cookies. draft, r=jkt 2019-05-08 13:50:45 +00:00
file_domain_hierarchy_inner_inner_inner.html^headers^ Bug 1457503 - Removal of http-equiv cookies. draft, r=jkt 2019-05-08 13:50:45 +00:00
file_domain_hierarchy_inner_inner.html Bug 1457503 - Removal of http-equiv cookies. draft, r=jkt 2019-05-08 13:50:45 +00:00
file_domain_hierarchy_inner_inner.html^headers^ Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin 2019-05-17 11:20:19 +00:00
file_domain_hierarchy_inner.html Bug 1457503 - Removal of http-equiv cookies. draft, r=jkt 2019-05-08 13:50:45 +00:00
file_domain_hierarchy_inner.html^headers^ Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin 2019-05-17 11:20:19 +00:00
file_domain_inner_inner.html Bug 1457503 - Removal of http-equiv cookies. draft, r=jkt 2019-05-08 13:50:45 +00:00
file_domain_inner_inner.html^headers^ Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin 2019-05-17 11:20:19 +00:00
file_domain_inner.html Bug 1457503 - Removal of http-equiv cookies. draft, r=jkt 2019-05-08 13:50:45 +00:00
file_domain_inner.html^headers^ Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin 2019-05-17 11:20:19 +00:00
file_iframe_allow_same_origin.html
file_iframe_allow_scripts.html
file_image_inner_inner.html Bug 1457503 - Removal of http-equiv cookies. draft, r=jkt 2019-05-08 13:50:45 +00:00
file_image_inner_inner.html^headers^ Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin 2019-05-17 11:20:19 +00:00
file_image_inner.html Bug 1457503 - Removal of http-equiv cookies. draft, r=jkt 2019-05-08 13:50:45 +00:00
file_image_inner.html^headers^ Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin 2019-05-17 11:20:19 +00:00
file_loadflags_inner.html Bug 1457503 - Removal of http-equiv cookies. draft, r=jkt 2019-05-08 13:50:45 +00:00
file_loadflags_inner.html^headers^ Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin 2019-05-17 11:20:19 +00:00
file_loadinfo_redirectchain.sjs
file_localhost_inner.html Bug 1457503 - Removal of http-equiv cookies. draft, r=jkt 2019-05-08 13:50:45 +00:00
file_localhost_inner.html^headers^ Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin 2019-05-17 11:20:19 +00:00
file_loopback_inner.html Bug 1457503 - Removal of http-equiv cookies. draft, r=jkt 2019-05-08 13:50:45 +00:00
file_loopback_inner.html^headers^ Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin 2019-05-17 11:20:19 +00:00
file_subdomain_inner.html Bug 1457503 - Removal of http-equiv cookies. draft, r=jkt 2019-05-08 13:50:45 +00:00
file_subdomain_inner.html^headers^ Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin 2019-05-17 11:20:19 +00:00
file_testcommon.js Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
file_testloadflags_chromescript.js Bug 1556844 - Enable more ESLint rules for netwerk, (auto & manual) fixes & format changes , r=dragana 2019-06-21 20:13:40 +00:00
file_testloadflags.js Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
iframe_1502055.html
image1.png Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
image1.png^headers^ Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
image2.png Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
image2.png^headers^ Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
method.sjs
mochitest.ini Bug 1457503 - Removal of http-equiv cookies. draft, r=jkt 2019-05-08 13:50:45 +00:00
origin_header_form_post_xorigin.html
origin_header_form_post.html
origin_header.sjs
partial_content.sjs
redirect_idn.html
redirect_idn.html^headers^
redirect.sjs
rel_preconnect.sjs
reset_cookie_xhr.sjs
set_cookie_xhr.sjs
signed_web_packaged_app.sjs
subResources.sjs
sw_1502055.js
test1.css Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
test1.css^headers^ Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
test2.css Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
test2.css^headers^ Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
test_1331680_iframe.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_1331680_xhr.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_1331680.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_1396395.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_1421324.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_1425031.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_1502055.html Bug 1556844 - Enable more ESLint rules for netwerk, (auto & manual) fixes & format changes , r=dragana 2019-06-21 20:13:40 +00:00
test_1503201.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_accept_header.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_accept_header.sjs
test_arraybufferinputstream.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_different_domain_in_hierarchy.html Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
test_differentdomain.html Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
test_documentcookies_maxage.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_idn_redirect.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_image.html Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
test_loadflags.html Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
test_loadinfo_redirectchain.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_origin_header.html Bug 1504085 - P3 fix test r=tnguyen 2019-06-14 20:15:27 +00:00
test_partially_cached_content.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_redirect_ref.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_rel_preconnect.html Bug 1541557: Part 4 - Stop relying on synchronous preference getters/setters. r=nika 2019-06-13 09:34:39 -07:00
test_same_base_domain_2.html Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
test_same_base_domain_3.html Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin 2019-05-17 11:20:19 +00:00
test_same_base_domain_4.html Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
test_same_base_domain_5.html Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin 2019-05-17 11:20:19 +00:00
test_same_base_domain_6.html Bug 1547397 - Part 1: Move some mochitests and browser-chrome tests for cookies out of extensions/cookies; r=baku 2019-04-30 14:07:12 +00:00
test_same_base_domain.html Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin 2019-05-17 11:20:19 +00:00
test_samedomain.html Bug 1550050 - Fix intermittent failures in test_same_base_domain_3.html forcing no cache via HTTP headers, r=valentin 2019-05-17 11:20:19 +00:00
test_uri_scheme.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_user_agent_overrides.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_user_agent_updates_reset.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_user_agent_updates.html Bug 1541557: Part 5 - Update callers of ChromeScript.sendSyncMessage to use sendQuery instead. r=nika 2019-06-12 12:40:51 -07:00
test_viewsource_unlinkable.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
test_xhr_method_case.html Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky 2019-04-16 03:50:44 +00:00
user_agent_update.sjs
user_agent.sjs
web_packaged_app.sjs