Fixed <rdar://problem/3853676> Browser Crash when accessing CCWeb Progress Page...
authorrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Jan 2005 01:39:19 +0000 (01:39 +0000)
committerrjw <rjw@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Jan 2005 01:39:19 +0000 (01:39 +0000)
commit4e01dfeb3990a40aa27d633b943919fc3e44f591
tree11b79d9e5b83169b921ad14ce36bc1185084aaf4
parent826c9d3bdbe1ebaa4941fed596402811ef36656f
Fixed <rdar://problem/3853676> Browser Crash when accessing CCWeb Progress Page - KJS::Bindings::convertValueToJValue

Fixed the following problems with LiveConnect that are demonstrated by the application
described in 3853676.

1.  If a nil object is passed in an array from Java to JavaScript we will crash.
2.  We sometimes will incorrectly attempt to access a generic JavaScript as a Java runtime object wrapper.
3.  We will sometimes fail to find the correct static method ID.

        Reviewed by Maciej.

        * bindings/jni/jni_jsobject.cpp:
        (JSObject::convertJObjectToValue):
        (JSObject::listFromJArray):
        * bindings/jni/jni_runtime.cpp:
        (JavaField::valueFromInstance):
        (JavaField::setValueToInstance):
        * bindings/jni/jni_utility.cpp:
        (KJS::Bindings::getMethodID):
        (KJS::Bindings::convertValueToJValue):
        * bindings/runtime_array.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8408 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/bindings/jni/jni_jsobject.cpp
JavaScriptCore/bindings/jni/jni_runtime.cpp
JavaScriptCore/bindings/jni/jni_utility.cpp
JavaScriptCore/bindings/runtime_array.h