зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
9500bf5dfb
Коммит
b495992a03
|
@ -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 " \
|
||||
|
|
Загрузка…
Ссылка в новой задаче