return a better error code when content policy blocked the load

followup to bug 305565, r+sr=bz a=asa


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@180107 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cbiesinger%web.de
2005-09-13 13:29:52 +00:00
parent 7ae8c06558
commit caf4efc195

View File

@@ -169,6 +169,7 @@
#include "nsIScriptSecurityManager.h"
#include "nsIContentPolicy.h"
#include "nsContentPolicyUtils.h"
#include "nsContentErrors.h"
#ifdef XP_UNIX
#if defined(MOZ_WIDGET_GTK) || defined (MOZ_WIDGET_GTK2)
@@ -3365,7 +3366,7 @@ NS_IMETHODIMP nsPluginHostImpl::InstantiateEmbeddedPlugin(const char *aMimeType,
nsnull, //extra
&shouldLoad);
if (NS_FAILED(rv) || NS_CP_REJECTED(shouldLoad))
return NS_ERROR_FAILURE;
return NS_ERROR_CONTENT_BLOCKED_SHOW_ALT;
}