Bug 398313 - "Java plugin doesn't show up in disabled state (Add-ons Manager)" [p=Mossop r+sr=jst a=blocking1.9+]

This commit is contained in:
reed@reedloden.com 2007-11-07 01:06:40 -08:00
parent e2929cc66a
commit ae7d90ecef

View File

@ -278,12 +278,9 @@ nsPluginDirServiceProvider::GetFile(const char *prop, PRBool *persistant,
}
}
} else if (nsCRT::strcmp(prop, NS_WIN_JRE_SCAN_KEY) == 0) {
PRBool isJavaEnabled;
nsXPIDLCString strVer;
#ifdef OJI
if ((NS_FAILED(prefs->GetBoolPref("security.enable_java", &isJavaEnabled))
|| !isJavaEnabled) ||
NS_FAILED(prefs->GetCharPref(prop, getter_Copies(strVer))))
if (NS_FAILED(prefs->GetCharPref(prop, getter_Copies(strVer))))
#endif /* OJI */
return NS_ERROR_FAILURE;
verBlock minVer;