Bug 1465294 Part 8 - Don't enable crash reporter in recording/replaying processes, r=aklotz.

--HG--
extra : rebase_source : c07f157b2a4d2244e9fa344cf24624ef962430f1
This commit is contained in:
Brian Hackett 2018-07-23 14:53:16 +00:00
parent c1908d9119
commit de58a40fc1

View File

@ -32,6 +32,11 @@ public:
// crash reporter needs metadata), the shmem should be parsed.
template <typename T>
static bool InitSingleton(T* aToplevelProtocol) {
// The crash reporter is not enabled in recording/replaying processes.
if (recordreplay::IsRecordingOrReplaying()) {
return true;
}
Shmem shmem;
if (!AllocShmem(aToplevelProtocol, &shmem)) {
return false;