зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
7f248115aa
Коммит
efc219fb41
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче