gecko-dev/testing/mochitest
Andrew McCreight 07dc2afa5b Bug 1586393, part 2 - Fix BrowserTestUtils.addContentEventListener() with Fission. r=mconley
The current implementation of addContentEventListener() is centered
around the message manager. When any message manager goes away, it
cleans up everything, which does not work when Fission is enabled and
we do a cross-process navigation.

My new implementation instead uses window actors. Message manager
shared state is used to store the set of expected event listeners. New
windows, after the function is called for the first time in a test,
will get listeners added properly. Of windows that exist at the first
time the function is called in a test, only windows associated with
the BC of the browser that is passed in will get added, which is a
disadvantage relative to the current setup. That could probably be
fixed.

We auto remove at the end of the test, not when any message manager is
torn down, so there's never a need to disable auto removal.

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

--HG--
extra : moz-landing-system : lando
2019-10-29 21:29:02 +00:00
..
BrowserTestUtils Bug 1586393, part 2 - Fix BrowserTestUtils.addContentEventListener() with Fission. r=mconley 2019-10-29 21:29:02 +00:00
MochiKit Bug 1576502 - Fix some wording issues r=mhoye 2019-08-27 15:38:58 +00:00
baselinecoverage Bug 1561435 - Format testing/, a=automatic-formatting 2019-07-05 11:01:24 +02:00
chrome Bug 1578709 - Only set flash only pref for those tests that need it, r=mconley,ahal 2019-09-04 22:12:39 +00:00
dynamic
embed
manifests
pywebsocket
ssltunnel bug 1590888 - reinstate filtering of client certificate selection during the TLS handshake r=kjacobs 2019-10-25 17:11:25 +00:00
static
tests Bug 1586393, part 1 - Add test-complete observer notification. r=mconley 2019-10-29 21:25:02 +00:00
README.txt
ShutdownLeaksCollector.jsm Bug 1561435 - Format testing/, a=automatic-formatting 2019-07-05 11:01:24 +02:00
__init__.py
api.js Bug 1561435 - Format testing/, a=automatic-formatting 2019-07-05 11:01:24 +02:00
bisection.py Bug 1559975 - convert testing/mochitest to python3 r=ahal 2019-08-02 19:44:34 +00:00
browser-harness.xul
browser-test.js Bug 1586393, part 1 - Add test-complete observer notification. r=mconley 2019-10-29 21:25:02 +00:00
chrome-harness.js Bug 1561435 - Format testing/, a=automatic-formatting 2019-07-05 11:01:24 +02:00
chunkifyTests.js Bug 1561435 - Format testing/, a=automatic-formatting 2019-07-05 11:01:24 +02:00
favicon.ico
harness.xul
leaks.py Bug 1551334 - Migrate OSX hidden window from XUL to XHTML r=Gijs 2019-05-22 18:00:13 +00:00
mach_commands.py Bug 1580832 - Remove robocop test and support files; r=snorp 2019-09-24 15:10:21 +00:00
mach_test_package_commands.py Bug 1560073 - Change default android package name for most mach test commands; r=snorp,nalexander,maja_zf 2019-06-26 02:34:49 +00:00
manifest.json
manifest.webapp
manifestLibrary.js Bug 1561435 - Format testing/, a=automatic-formatting 2019-07-05 11:01:24 +02:00
mochitest-e10s-utils.js Bug 1561435 - Format testing/, a=automatic-formatting 2019-07-05 11:01:24 +02:00
mochitest_options.py Bug 1585416 - Disable support for Android mochitest-chrome in mochitest harness; r=bc 2019-10-02 17:43:27 +00:00
moz.build Bug 1578465 - Remove the content-utils.js framescript, r=nika 2019-10-29 16:23:16 +00:00
pywebsocket_wrapper.py
redirect.html
runjunit.py Bug 1588969 - Add --run-until-failure and --repeat options for |mach geckoview-junit|; r=bc,hiro 2019-10-23 22:45:49 +00:00
runtests.py Bug 1589305 - Disable leaked window/docshell reporting for Thunderbird mochitests; r=mccr8 2019-10-18 13:42:44 +00:00
runtestsremote.py
schema.json
server.js Bug 1561435 - Format testing/, a=automatic-formatting 2019-07-05 11:01:24 +02:00
shutdown-leaks-collector.js
start_desktop.js Bug 1561435 - Format testing/, a=automatic-formatting 2019-07-05 11:01:24 +02:00

README.txt

See https://developer.mozilla.org/en/docs/Mochitest for detailed information on running and writing mochitests.