Do not check the "plugin safety pref" on every NPP call bug 96103 patch by av r=peterl sr=brendan

git-svn-id: svn://10.0.0.236/trunk@105143 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterlubczynski%netscape.com
2001-10-11 04:51:06 +00:00
parent fe345ee2cf
commit f701c0ab42
2 changed files with 19 additions and 20 deletions

View File

@@ -126,6 +126,8 @@
#include "nsILocalFile.h"
#include "nsIFileChannel.h"
#include "nsPluginSafety.h"
#ifdef XP_WIN
#include "nsIDirectoryService.h"
#include "nsDirectoryServiceDefs.h"
@@ -4378,6 +4380,9 @@ NS_IMETHODIMP nsPluginHostImpl::LoadPlugins()
if(mPluginsLoaded)
return NS_OK;
// check preferences on whether or not we want to try safe calls to plugins
NS_INIT_PLUGIN_SAFE_CALLS;
// retrieve a path for layout module. Needed for plugin mime types registration
nsCOMPtr<nsIFile> path;
PRBool isLayoutPath = PR_FALSE;