Fixing bug 104940 -- ignore plugins that do not show mime type, r=peterl, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@105541 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
56fd5dbc91
commit
2f106e6979
@ -4364,6 +4364,10 @@ nsresult nsPluginHostImpl::ScanPluginsDirectory(nsPluginsDir& pluginsDir,
|
||||
if(NS_FAILED(res))
|
||||
continue;
|
||||
|
||||
// if we don't have mime type -- don't proceed, this is not a plugin
|
||||
if(!info.fMimeTypeArray)
|
||||
continue;
|
||||
|
||||
nsPluginTag* pluginTag = new nsPluginTag(&info);
|
||||
pluginFile.FreePluginInfo(info);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user