Fix for topcrash on UNIX where the ProxyJNI is broken with the JRE after a plugins.refresh(). bug 86591 r=av sr=attinasi

This commit is contained in:
peterlubczynski%netscape.com 2001-10-08 23:00:58 +00:00
parent fba17af79c
commit 8d00aba64c

View File

@ -2564,7 +2564,12 @@ nsresult nsPluginHostImpl::ReloadPlugins(PRBool reloadPages)
{
next = p->mNext;
if(!IsRunningPlugin(p))
// XXX only remove our plugin from the list if it's not running and not
// an XPCOM plugin. XPCOM plugins do not get a call to nsIPlugin::Shutdown
// if plugins are reloaded. This also fixes a crash on UNIX where the call
// to shutdown would break the ProxyJNI connection to the JRE after a reload.
// see bug 86591
if(!IsRunningPlugin(p) && (!p->mEntryPoint || (p->mFlags & NS_PLUGIN_FLAG_OLDSCHOOL)))
{
if(p == mPlugins)
mPlugins = next;