Bug 632611. Record failures in crash reports. r=ehsan,a=me

--HG--
extra : rebase_source : ab181172ca28a3c750754147f87366dc2d28d126
This commit is contained in:
Jeff Muizelaar 2011-02-09 10:32:24 -05:00
parent 108521c1ae
commit ab1a467e86

View File

@ -675,7 +675,13 @@ GfxInfoBase::LogFailure(const nsACString &failure)
/* We only keep the first 9 failures */
if (mFailureCount < NS_ARRAY_LENGTH(mFailures)) {
mFailures[mFailureCount++] = failure;
/* record it in the crash notes too */
#if defined(MOZ_CRASHREPORTER) && defined(MOZ_ENABLE_LIBXUL)
CrashReporter::AppendAppNotesToCrashReport(failure);
#endif
}
}
/* void getFailures ([optional] out unsigned long failureCount, [array, size_is (failureCount), retval] out string failures); */