It's GetSecurityManager, not SecurityManager now.

This commit is contained in:
vladimir%pobox.com 2005-10-21 22:41:34 +00:00
parent 2769c965b7
commit 137be2496d

View File

@ -108,7 +108,7 @@ nsDOMWindowUtils::GetDocumentMetadata(const nsAString& aName,
nsAString& aValue)
{
PRBool hasCap = PR_FALSE;
if (NS_FAILED(nsContentUtils::SecurityManager()->IsCapabilityEnabled("UniversalXPConnect", &hasCap))
if (NS_FAILED(nsContentUtils::GetSecurityManager()->IsCapabilityEnabled("UniversalXPConnect", &hasCap))
|| !hasCap)
return NS_ERROR_DOM_SECURITY_ERR;