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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user