Fix for bug 306363 (Clean up nsContentUtils service getters). r/sr=bz.
git-svn-id: svn://10.0.0.236/trunk@179982 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -86,7 +86,7 @@ IntersectPrincipalCerts(nsIPrincipal *aOld, nsIPrincipal *aNew)
|
||||
aOld->GetURI(getter_AddRefs(uri));
|
||||
aOld->GetDomain(getter_AddRefs(domain));
|
||||
|
||||
nsContentUtils::GetSecurityManager()->GetCodebasePrincipal(uri, &principal);
|
||||
nsContentUtils::SecurityManager()->GetCodebasePrincipal(uri, &principal);
|
||||
if (principal && domain) {
|
||||
principal->SetDomain(domain);
|
||||
}
|
||||
@@ -513,7 +513,7 @@ nsScriptLoader::ProcessScriptElement(nsIScriptElement *aElement,
|
||||
if (!docPrincipal) {
|
||||
return FireErrorNotification(NS_ERROR_UNEXPECTED, aElement, aObserver);
|
||||
}
|
||||
rv = nsContentUtils::GetSecurityManager()->
|
||||
rv = nsContentUtils::SecurityManager()->
|
||||
CheckLoadURIWithPrincipal(docPrincipal, scriptURI,
|
||||
nsIScriptSecurityManager::ALLOW_CHROME);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user