diff --git a/dom/ipc/ContentChild.cpp b/dom/ipc/ContentChild.cpp index 2fe91affcd5c..e8f86aba502d 100644 --- a/dom/ipc/ContentChild.cpp +++ b/dom/ipc/ContentChild.cpp @@ -1345,7 +1345,11 @@ mozilla::ipc::IPCResult ContentChild::RecvRequestMemoryReport( const bool& aMinimizeMemoryUsage, const Maybe& aDMDFile) { nsCString process; - GetProcessName(process); + if (aAnonymize) { + GetProcessName(process); + } else { + process = NS_ConvertUTF16toUTF8(GetRemoteType()); + } AppendProcessId(process); MemoryReportRequestClient::Start(