bug 769302 - annotate accessibility instantiation in crash reports r=tbsaunde f=davidb
authorArun Sukumaran Latha <arun.sukumaran.latha@gmail.com>
Fri, 20 Jul 2012 14:43:49 -0400
changeset 99950 a746aaa32b229ab48fa7870105c5227f3ab84c8f
parent 99949 bc2c5ae47895d0cf25451f602ed451abe2f3fa8c
child 99951 ca0e3950eb0c63ee8e3d1a8c5c1473d869c9f409
push id12267
push usertrev.saunders@gmail.com
push dateFri, 20 Jul 2012 18:44:08 +0000
treeherdermozilla-inbound@a746aaa32b22 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs769302
milestone17.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 769302 - annotate accessibility instantiation in crash reports r=tbsaunde f=davidb
accessible/src/base/nsAccessibilityService.cpp
--- a/accessible/src/base/nsAccessibilityService.cpp
+++ b/accessible/src/base/nsAccessibilityService.cpp
@@ -37,16 +37,20 @@
 #include "nsHTMLWin32ObjectAccessible.h"
 #endif
 #include "TextLeafAccessibleWrap.h"
 
 #ifdef DEBUG
 #include "Logging.h"
 #endif
 
+#ifdef MOZ_CRASHREPORTER
+#include "nsExceptionHandler.h"
+#endif
+
 #include "nsIDOMDocument.h"
 #include "nsIDOMHTMLObjectElement.h"
 #include "nsIDOMXULElement.h"
 #include "nsImageFrame.h"
 #include "nsIObserverService.h"
 #include "nsLayoutUtils.h"
 #include "nsNPAPIPluginInstance.h"
 #include "nsObjectFrame.h"
@@ -1218,16 +1222,22 @@ nsAccessibilityService::Init()
 
 #ifdef DEBUG
   logging::CheckEnv();
 #endif
 
   // Initialize accessibility.
   nsAccessNodeWrap::InitAccessibility();
 
+#ifdef MOZ_CRASHREPORTER
+  CrashReporter::
+    AnnotateCrashReport(NS_LITERAL_CSTRING("Accessibility"),
+                        NS_LITERAL_CSTRING("Active"));
+#endif
+
   gIsShutdown = false;
   return true;
 }
 
 void
 nsAccessibilityService::Shutdown()
 {
   // Remove observers.