Fix for bug 308328 (crash in [@ nsDocument::GetPrincipal] when closing browser). r/sr=bz.
git-svn-id: svn://10.0.0.236/trunk@182242 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -643,7 +643,7 @@ nsObjectLoadingContent::ObjectURIChanged(nsIURI* aURI,
|
||||
// Null URIs happen when the URL to load is specified via other means than the
|
||||
// data/src attribute, for example via custom <param> elements.
|
||||
if (aURI) {
|
||||
nsIScriptSecurityManager* secMan = nsContentUtils::SecurityManager();
|
||||
nsIScriptSecurityManager* secMan = nsContentUtils::GetSecurityManager();
|
||||
NS_ASSERTION(secMan, "No security manager!?");
|
||||
nsresult rv = secMan->CheckLoadURIWithPrincipal(doc->GetPrincipal(), aURI, 0);
|
||||
if (NS_FAILED(rv)) {
|
||||
|
||||
Reference in New Issue
Block a user