Fix for bug 132325. Don't hold stale references to MRJ Plug-in Instances in LiveConnect. r=sdagley, sr= beard, a=asa.

This commit is contained in:
bnesse%netscape.com 2002-03-26 20:06:25 +00:00
Родитель 7f248115aa
Коммит efc219fb41
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -866,7 +866,6 @@ Java_netscape_javascript_JSObject_eval(JNIEnv* env,
#else
/* determine the plugin instance so we can obtain its codebase. */
// beard: should file a bug with Apple that JMJNIToAWTContext doesn't work.
// MRJPluginInstance* pluginInstance = theJVMPlugin->getPluginInstance(env);
MRJPluginInstance* pluginInstance = GetCurrentInstance(env);
#if 0
if (pluginInstance == NULL) {
@ -952,6 +951,11 @@ public:
{
}
~GetWindowMessage()
{
NS_RELEASE(mPluginInstance);
}
virtual void execute(JNIEnv* env)
{
MRJSecurityContext* securityContext = getSecurityContext(mPluginInstance);