Bug 1423261: Submit IPC protocol names in shutdown crash reports in a way that Socorro is able to display. r=jimm

This commit is contained in:
Stephen A Pohl 2018-03-12 11:11:44 -04:00
Родитель 9500bf5dfb
Коммит b495992a03
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -674,8 +674,9 @@ void
MessageChannel::WillDestroyCurrentMessageLoop()
{
#if defined(DEBUG)
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("ProtocolName"),
nsDependentCString(mName));
CrashReporter::AnnotateCrashReport(
NS_LITERAL_CSTRING("IPCFatalErrorProtocol"),
nsDependentCString(mName));
MOZ_CRASH("MessageLoop destroyed before MessageChannel that's bound to it");
#endif
@ -699,8 +700,9 @@ MessageChannel::Clear()
#if !defined(ANDROID)
if (!Unsound_IsClosed()) {
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("ProtocolName"),
nsDependentCString(mName));
CrashReporter::AnnotateCrashReport(
NS_LITERAL_CSTRING("IPCFatalErrorProtocol"),
nsDependentCString(mName));
switch (mChannelState) {
case ChannelOpening:
MOZ_CRASH("MessageChannel destroyed without being closed " \