From a4d74945cd200a9836a75342d9359f44f009caf3 Mon Sep 17 00:00:00 2001 From: Aaron Klotz Date: Thu, 6 Jul 2017 13:59:14 -0600 Subject: [PATCH] Bug 1378818: Add MOZ_CRASHREPORTER guards around a11y::Compatibility code; r=eeejay MozReview-Commit-ID: 6ASeCgJNPV --- accessible/windows/msaa/Compatibility.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/accessible/windows/msaa/Compatibility.cpp b/accessible/windows/msaa/Compatibility.cpp index 94cce4cd723b..f6e66db1eddc 100644 --- a/accessible/windows/msaa/Compatibility.cpp +++ b/accessible/windows/msaa/Compatibility.cpp @@ -7,7 +7,9 @@ #include "Compatibility.h" #include "mozilla/WindowsVersion.h" +#if defined(MOZ_CRASHREPORTER) #include "nsExceptionHandler.h" +#endif // defined(MOZ_CRASHREPORTER) #include "nsUnicharUtils.h" #include "nsWindowsDllInterceptor.h" #include "nsWinUtils.h" @@ -353,11 +355,13 @@ UseIAccessibleProxyStub() return true; } +#if defined(MOZ_CRASHREPORTER) // If we reach this point then something is seriously wrong with the // IAccessible configuration in the computer's registry. Let's annotate this // so that we can easily determine this condition during crash analysis. CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("IAccessibleConfig"), NS_LITERAL_CSTRING("NoSystemTypeLibOrPS")); +#endif // defined(MOZ_CRASHREPORTER) return false; }