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