diff --git a/xpcom/base/MemoryInfoDumper.cpp b/xpcom/base/MemoryInfoDumper.cpp index 2e8c148c57ee..fb34b08a717c 100644 --- a/xpcom/base/MemoryInfoDumper.cpp +++ b/xpcom/base/MemoryInfoDumper.cpp @@ -399,7 +399,8 @@ DumpReport(nsIGZFileWriter *aWriter, bool aIsFirst, DUMP(aWriter, "\", \"path\": \""); nsCString path(aPath); - path.ReplaceSubstring("\\", "\\\\"); // escape backslashes for JSON + path.ReplaceSubstring("\\", "\\\\"); /* --> \\ */ + path.ReplaceSubstring("\"", "\\\""); // " --> \" DUMP(aWriter, path); DUMP(aWriter, "\", \"kind\": ");