bug 436575 prevent Mac OSX 10.5.3 hang by not loading VerifiedDownloadPlugin.

patch by shaver, r=josh aas, sr=brendan, a=ss


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@252224 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dveditz%cruzio.com
2008-06-10 19:50:06 +00:00
parent 12ed2a65e7
commit 986ff71aa7

View File

@@ -237,12 +237,22 @@ nsPluginFile::~nsPluginFile() {}
*/
nsresult nsPluginFile::LoadPlugin(PRLibrary* &outLibrary)
{
const char* path;
const char* path;
if (!mPlugin)
return NS_ERROR_NULL_POINTER;
nsCAutoString temp;
mPlugin->GetNativeLeafName(temp);
/*
* Don't load the VDP fake plugin, to avoid tripping a bad bug in OS X
* 10.5.3 (see bug 436575).
*/
if (!strcmp(temp.get(), "VerifiedDownloadPlugin.plugin")) {
NS_WARNING("Preventing load of VerifiedDownloadPlugin.plugin (see bug 436575)");
return NS_ERROR_FAILURE;
}
mPlugin->GetNativePath(temp);
path = temp.get();