diff --git a/dom/ipc/ContentParent.cpp b/dom/ipc/ContentParent.cpp index d84baeb8568c..280628eb69e3 100644 --- a/dom/ipc/ContentParent.cpp +++ b/dom/ipc/ContentParent.cpp @@ -2414,6 +2414,9 @@ bool ContentParent::LaunchSubprocessResolve(bool aIsSync, base::ProcessId procId = base::GetProcId(mSubprocess->GetChildProcessHandle()); Open(mSubprocess->TakeChannel(), procId); + + ContentProcessManager::GetSingleton()->AddContentProcess(this); + #ifdef MOZ_CODE_COVERAGE Unused << SendShareCodeCoverageMutex( CodeCoverageHandler::Get()->GetMutexHandle(procId)); @@ -2428,8 +2431,6 @@ bool ContentParent::LaunchSubprocessResolve(bool aIsSync, return false; } - ContentProcessManager::GetSingleton()->AddContentProcess(this); - mHangMonitorActor = ProcessHangMonitor::AddProcess(this); // Set a reply timeout for CPOWs.