зеркало из https://github.com/mozilla/pjs.git
Bug 426565. Firefox 3 crashes with Java applets.
r+sr=jst,a=dsicore.
This commit is contained in:
Родитель
fc343ea38b
Коммит
1d04520cd1
|
@ -286,9 +286,12 @@ PRBool nsPluginNativeWindowGtk2::CanGetValueFromPlugin(nsCOMPtr<nsIPluginInstanc
|
||||||
|
|
||||||
rv = pluginHost->GetPluginFactory("application/x-java-vm", &pluginFactory);
|
rv = pluginHost->GetPluginFactory("application/x-java-vm", &pluginFactory);
|
||||||
if (NS_SUCCEEDED(rv) && pluginFactory) {
|
if (NS_SUCCEEDED(rv) && pluginFactory) {
|
||||||
const char * jpiDescription;
|
const char * jpiDescription = NULL;
|
||||||
|
|
||||||
pluginFactory->GetValue(nsPluginVariable_DescriptionString, (void*)&jpiDescription);
|
pluginFactory->GetValue(nsPluginVariable_DescriptionString, (void*)&jpiDescription);
|
||||||
|
if (!jpiDescription)
|
||||||
|
return PR_FALSE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* "Java(TM) Plug-in" is Sun's Java Plugin Trademark,
|
* "Java(TM) Plug-in" is Sun's Java Plugin Trademark,
|
||||||
* so we are sure that this is Sun 's Java Plugin if
|
* so we are sure that this is Sun 's Java Plugin if
|
||||||
|
|
Загрузка…
Ссылка в новой задаче