gecko-dev/testing/mochitest
Rob Wu 1995f567af Bug 1762225 - Test behavior of background page with extension process crash r=rpl,gsvelto
This does not only add new coverage, it also fixes a typo that prevented
the test from actually killing the extension process, due to an
always-false condition (like bug 1844192).

With that typo fixed, this xpcshell test will now actually trigger a
extension process crash. Because that triggers the generation of crash
dumps when MOZ_CRASHREPORTER is enabled, additional code is needed to
clean that up.

With all of that done, this test introduces coverage for the following
new scenarios:

- test_crash_while_starting_background_without_context
- test_crash_while_starting_background_with_context
- test_crash_while_starting_event_page_without_context
- test_crash_while_starting_event_page_with_context
- test_crash_after_background_startup
- test_crash_after_event_page_startup
- test_crash_and_wakeup_via_persistent_listeners

The last two tests tasks are the main scenarios of interest, because
they are the most likely to occur in the wild.

Differential Revision: https://phabricator.services.mozilla.com/D183931
2023-08-14 13:41:17 +00:00
..
BrowserTestUtils Bug 1762225 - Test behavior of background page with extension process crash r=rpl,gsvelto 2023-08-14 13:41:17 +00:00
DoHServer Bug 1838829 - Add Http/2 test server in mochitest, r=necko-reviewers,valentin 2023-06-22 19:44:53 +00:00
Http2Server Bug 1838829 - Make Http/2 server support websocket, r=necko-reviewers,valentin 2023-06-28 13:21:00 +00:00
MochiKit
baselinecoverage Backed out changeset 588b596bcb73 (bug 1847587) for mochitest failures on test_focusrings.xhtml . CLOSED TREE 2023-08-08 02:04:14 +03:00
chrome Backed out changeset 588b596bcb73 (bug 1847587) for mochitest failures on test_focusrings.xhtml . CLOSED TREE 2023-08-08 02:04:14 +03:00
dynamic Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish 2023-05-20 12:26:49 +00:00
embed
manifests Backed out changeset 588b596bcb73 (bug 1847587) for mochitest failures on test_focusrings.xhtml . CLOSED TREE 2023-08-08 02:04:14 +03:00
pywebsocket3
ssltunnel
static
tests Bug 1848205 part 3: Ensure we log something when TestRunner increments the error count in testFinished. r=jmaher 2023-08-10 22:52:35 +00:00
README.txt
ShutdownLeaksCollector.sys.mjs
__init__.py
api.js Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish 2023-05-20 12:26:49 +00:00
bisection.py
browser-harness.xhtml Bug 1843790 - Part 1: Rewrite toolkit/modules/AppConstants.sys.mjs consumers in html/xhtml to use ChromeUtils.importESModule. r=Gijs 2023-07-18 23:06:31 +00:00
browser-test.js Bug 1836482 - Replace AddonManager.jsm imports with AddonManager.sys.mjs r=Standard8,webcompat-reviewers,twisniewski 2023-06-04 13:44:45 +00:00
chrome-harness.js Bug 1834176 - Convert consumers of NetUtil.jsm to import the ES module directly. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo 2023-06-07 08:42:36 +00:00
chunkifyTests.js
document-builder.sjs Bug 1834176 - Convert consumers of NetUtil.jsm to import the ES module directly. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo 2023-06-07 08:42:36 +00:00
favicon.ico
harness.xhtml Bug 1837183 - Avoid loading server.js within (browser-)harness.xhtml. r=ahal 2023-07-12 13:38:33 +00:00
ignorePrefs.json Bug 1839890 - Add browser.pageActions.persistedActions to ignorePrefs.json r=adw 2023-06-27 15:56:52 +00:00
leaks.py
mach_commands.py Bug 1831179 - Remove disabling fission for android tests r=jmaher 2023-05-08 17:59:32 +00:00
mach_test_package_commands.py
manifest.json
manifest.webapp
manifestLibrary.js Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish 2023-05-20 12:26:49 +00:00
mochitest-e10s-utils.js Bug 1838155 - Clean up some console.error calls that had been migrated from Cu.reportError. r=jdescottes,perftest-reviewers,geckoview-reviewers,credential-management-reviewers,search-reviewers,sgalich,owlish,jteow,sparky 2023-06-15 08:33:57 +00:00
mochitestListingsUtils.js Bug 1837183 - Avoid loading server.js within (browser-)harness.xhtml. r=ahal 2023-07-12 13:38:33 +00:00
mochitest_options.py Bug 1844173 - correct help message for --enable-a11y-checks. r=gbrown 2023-08-08 19:49:23 +00:00
moz.build Backed out changeset 588b596bcb73 (bug 1847587) for mochitest failures on test_focusrings.xhtml . CLOSED TREE 2023-08-08 02:04:14 +03:00
pywebsocket_wrapper.py
redirect.html
runjunit.py Bug 1838829 - Add Http/2 test server in mochitest, r=necko-reviewers,valentin 2023-06-22 19:44:53 +00:00
runtests.py Bug 1847841 - Reduce mozprocess.ProcessHandler use in mochitest harness r=hneiva 2023-08-10 13:03:03 +00:00
runtestsremote.py Bug 1631828 - use mozilla reason when we have a crash, and track by crash, not test. r=ahal 2023-05-22 19:59:17 +00:00
schema.json
server.js Bug 1837176 - Converting httpd.js to an ES module. r=necko-reviewers,webdriver-reviewers,valentin,whimboo 2023-07-12 13:38:34 +00:00
shutdown-leaks-collector.js
start_desktop.js

README.txt

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