mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 07:01:19 +00:00

This patch includes a bunch of somewhat related fixes, these are: - Ensuring that when a mochitest calls SimpleTest.expectChildProcessCrash() the harness will wait for the crashes to be recorded before deleting the dump files. This involves a message round-trip between the content and parent process so to minimize its performance impact on all the non-crashing tests it is done only when required. - As an additional optimization, the SimpleTest harness will not send a message to the content process anymore whenever it receives an ipc:content-shutdown event, instead it does it only for abnormal shutdowns. - Manually fixing remaining mochitests causing crashes to wait for crashes to be recorded before finishing and deleting the dump files. - Modifying BrowserTestUtils.crashBrowser() so that it optionally does not delete the dump files, this is useful for tests that submit their dumps and thus delete them on their own. MozReview-Commit-ID: 4SLJ8BjJ18n --HG-- extra : source : b5452a41bb962c6929292c5c538e19ac28d84fe7