Bug 1383501: Move a crash annotation so that it does not mask a previous annotation with the same key; r=handyman

MozReview-Commit-ID: 9u7VTKDglrS
This commit is contained in:
Aaron Klotz 2017-08-31 11:31:28 -06:00
Родитель 34f00ff865
Коммит a55d72f6da
1 изменённых файлов: 5 добавлений и 7 удалений

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

@ -127,6 +127,11 @@ ProxyStream::ProxyStream(REFIID aIID, const BYTE* aInitBuf,
CrashReporter::AnnotateCrashReport(
NS_LITERAL_CSTRING("CoUnmarshalInterfaceResult"), hrAsStr);
AnnotateInterfaceRegistration(aIID);
if (!mUnmarshaledProxy) {
CrashReporter::AnnotateCrashReport(kCrashReportKey,
NS_LITERAL_CSTRING("!mUnmarshaledProxy"));
}
#if defined(ACCESSIBILITY)
AnnotateClassRegistration(CLSID_AccessibleHandler);
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("UnmarshalActCtx"),
@ -254,13 +259,6 @@ ProxyStream::GetInterface(void** aOutInterface)
return false;
}
#if defined(MOZ_CRASHREPORTER)
if (!mUnmarshaledProxy) {
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("ProxyStreamUnmarshalStatus"),
NS_LITERAL_CSTRING("!mUnmarshaledProxy"));
}
#endif // defined(MOZ_CRASHREPORTER)
*aOutInterface = mUnmarshaledProxy.release();
return true;
}