bug 721654 - Crash in mozilla::AndroidBridge::HandleGeckoMessage r=kats
authorBrad Lassey <blassey@mozilla.com>
Mon, 16 Apr 2012 17:25:04 -0400
changeset 95547 8c3acc1224692cf4ef8a741ef2d8af88e502f7a9
parent 95546 5130ac1fa079c536c1a265d9842eaca52faa3546
child 95548 fbcc959f56169385a6be74f38e53344ea766950a
push id160
push userlsblakk@mozilla.com
push dateFri, 13 Jul 2012 18:18:57 +0000
treeherdermozilla-release@228ba1a111fc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs721654
milestone14.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 721654 - Crash in mozilla::AndroidBridge::HandleGeckoMessage r=kats
widget/android/AndroidBridge.cpp
--- a/widget/android/AndroidBridge.cpp
+++ b/widget/android/AndroidBridge.cpp
@@ -1521,17 +1521,17 @@ AndroidBridge::HandleGeckoMessage(const 
     jstring jMessage = env->NewString(nsPromiseFlatString(aMessage).get(), aMessage.Length());
     jstring returnMessage =  static_cast<jstring>(env->CallStaticObjectMethod(mGeckoAppShellClass, jHandleGeckoMessage, jMessage));
 
     jthrowable ex = env->ExceptionOccurred();
     if (ex) {
         env->ExceptionDescribe();
         env->ExceptionClear();
     }
-    nsJNIString jniStr(returnMessage);
+    nsJNIString jniStr(returnMessage, env);
     aRet.Assign(jniStr);
     ALOG_BRIDGE("leaving %s", __PRETTY_FUNCTION__);
 }
 
 static nsCOMPtr<nsIAndroidDrawMetadataProvider> gDrawMetadataProvider = NULL;
 
 nsCOMPtr<nsIAndroidDrawMetadataProvider>
 AndroidBridge::GetDrawMetadataProvider()