From 302abf6de8ba4d7aee88e290f23d462c52c62ad7 Mon Sep 17 00:00:00 2001 From: Chris Peterson Date: Mon, 23 Jan 2012 12:02:56 -0800 Subject: [PATCH] Bug 701002 part 2 - JavaStackTrace: send "JavaStackTrace" field to Socorro. r=dougt --- widget/android/AndroidJNI.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/widget/android/AndroidJNI.cpp b/widget/android/AndroidJNI.cpp index a4b0bc13935..d9caba04f90 100644 --- a/widget/android/AndroidJNI.cpp +++ b/widget/android/AndroidJNI.cpp @@ -206,12 +206,14 @@ Java_org_mozilla_gecko_GeckoAppShell_onChangeNetworkLinkStatus(JNIEnv *jenv, jcl } NS_EXPORT void JNICALL -Java_org_mozilla_gecko_GeckoAppShell_reportJavaCrash(JNIEnv *jenv, jclass, jstring stack) +Java_org_mozilla_gecko_GeckoAppShell_reportJavaCrash(JNIEnv *jenv, jclass, jstring jStackTrace) { #ifdef MOZ_CRASHREPORTER - nsJNIString javaStack(stack, jenv); - CrashReporter::AppendAppNotesToCrashReport(NS_ConvertUTF16toUTF8(javaStack)); -#endif + const nsJNIString stackTrace16(jStackTrace, jenv); + const NS_ConvertUTF16toUTF8 stackTrace8(stackTrace16); + CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("JavaStackTrace"), stackTrace8); +#endif // MOZ_CRASHREPORTER + abort(); }