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
Родитель 89bcd27e48
Коммит 1828b0472a
1 изменённых файлов: 1 добавлений и 4 удалений

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

@ -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;