OSDN Git Service

Avoid Android modifications to JavaNPObjectV8.cpp/h
authorSteve Block <steveblock@google.com>
Wed, 2 Mar 2011 17:26:25 +0000 (17:26 +0000)
committerSteve Block <steveblock@google.com>
Wed, 2 Mar 2011 17:26:25 +0000 (17:26 +0000)
commit49a6d4f2c272010e14806805cb2ca55e6fe8a782
tree62e38243824411d47ab32083ebcf6f40c112b6df
parentfc4a7c214a17115d92d1a036c76221e1bca8bcb5
Avoid Android modifications to JavaNPObjectV8.cpp/h

https://android-git.corp.google.com/g/40387 fixed a long-standing bug to
avoid leaking references to injected Java objects. However, it did so by
making changes to JavaNPObjectV8.cpp/h which were never upstreamed. This
change avoids the need for these changes.

This change also avoids the use of a local PassRefPtr, which was
incorrectly introduced in https://android-git.corp.google.com/g/36204.

Change-Id: I6b17e85f7991e5226e00e7b041c38e2ca3d0cf57
WebCore/bridge/jni/v8/JavaNPObjectV8.cpp
WebCore/bridge/jni/v8/JavaNPObjectV8.h
WebKit/android/jni/WebCoreFrameBridge.cpp