Bug 426565. Firefox 3 crashes with Java applets.

r+sr=jst,a=dsicore.
This commit is contained in:
alfred.peng%sun.com 2008-04-06 04:38:27 +00:00
Родитель fc343ea38b
Коммит 1d04520cd1
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -286,9 +286,12 @@ PRBool nsPluginNativeWindowGtk2::CanGetValueFromPlugin(nsCOMPtr<nsIPluginInstanc
rv = pluginHost->GetPluginFactory("application/x-java-vm", &pluginFactory);
if (NS_SUCCEEDED(rv) && pluginFactory) {
const char * jpiDescription;
const char * jpiDescription = NULL;
pluginFactory->GetValue(nsPluginVariable_DescriptionString, (void*)&jpiDescription);
if (!jpiDescription)
return PR_FALSE;
/**
* "Java(TM) Plug-in" is Sun's Java Plugin Trademark,
* so we are sure that this is Sun 's Java Plugin if