mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 632611. Record failures in crash reports. r=ehsan,a=me
--HG-- extra : rebase_source : ab181172ca28a3c750754147f87366dc2d28d126
This commit is contained in:
parent
108521c1ae
commit
ab1a467e86
@ -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); */
|
||||
|
Loading…
Reference in New Issue
Block a user