Allow passing a cached nsIContentPolicy service pointer to

NS_CheckContent*Policy if the caller has one.  Bug 304845, r=biesi, sr=jst
This commit is contained in:
bzbarsky@mit.edu
2005-08-19 15:00:01 +00:00
parent 83461bf191
commit 5ca0e3609e
9 changed files with 55 additions and 12 deletions

View File

@@ -1363,7 +1363,8 @@ nsObjectFrame::InstantiatePlugin(nsPresContext* aPresContext,
mContent,
nsDependentCString(aMimeType ? aMimeType : ""),
nsnull, //extra
&shouldLoad);
&shouldLoad,
nsContentUtils::GetContentPolicy());
if (NS_FAILED(rv) || NS_CP_REJECTED(shouldLoad)) {
return NS_ERROR_CONTENT_BLOCKED_SHOW_ALT;
}