Bug 1353168 Include remoteType in content process crash reports draft
authorAndrew Swan <aswan@mozilla.com>
Fri, 05 May 2017 09:31:25 -0700
changeset 573354 0f08a21a331714d6ac11a6e8ddc7c1e59136c69b
parent 572730 0b255199db9d6a6f189b89b7906f99155bde3726
child 627274 1e1674c5595d1754a5d70ba77e60e4338291a9b6
push id57361
push useraswan@mozilla.com
push dateFri, 05 May 2017 16:33:05 +0000
bugs1353168
milestone55.0a1
Bug 1353168 Include remoteType in content process crash reports MozReview-Commit-ID: 5TxU2JiUrtz
dom/ipc/ContentChild.cpp
--- a/dom/ipc/ContentChild.cpp
+++ b/dom/ipc/ContentChild.cpp
@@ -1425,16 +1425,18 @@ ContentChild::RecvSetProcessSandbox(cons
     sandboxEnabled? NS_LITERAL_CSTRING("1") : NS_LITERAL_CSTRING("0"));
 #if defined(XP_LINUX) && !defined(OS_ANDROID)
   nsAutoCString flagsString;
   flagsString.AppendInt(SandboxInfo::Get().AsInteger());
 
   CrashReporter::AnnotateCrashReport(
     NS_LITERAL_CSTRING("ContentSandboxCapabilities"), flagsString);
 #endif /* XP_LINUX && !OS_ANDROID */
+  CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("RemoteType"),
+                                     NS_ConvertUTF16toUTF8(GetRemoteType()));
 #endif /* MOZ_CRASHREPORTER */
 #endif /* MOZ_CONTENT_SANDBOX */
 
   return IPC_OK();
 }
 
 mozilla::ipc::IPCResult
 ContentChild::RecvBidiKeyboardNotify(const bool& aIsLangRTL,