Allow passing a cached nsIContentPolicy service pointer to

NS_CheckContent*Policy if the caller has one.  Bug 304845, r=biesi, sr=jst


git-svn-id: svn://10.0.0.236/trunk@178242 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2005-08-19 15:00:01 +00:00
parent 1815bcf181
commit e79cce1c42
9 changed files with 55 additions and 12 deletions

View File

@@ -860,7 +860,8 @@ CSSLoaderImpl::CheckLoadAllowed(nsIURI* aSourceURI,
aContext,
NS_LITERAL_CSTRING("text/css"),
nsnull, //extra param
&shouldLoad);
&shouldLoad,
nsContentUtils::GetContentPolicy());
if (NS_FAILED(rv) || NS_CP_REJECTED(shouldLoad)) {
LOG((" Load blocked by content policy"));