diff --git a/extensions/webservices/security/src/nsWebScriptsAccess.cpp b/extensions/webservices/security/src/nsWebScriptsAccess.cpp index efff32246b24..8117e9f8be06 100755 --- a/extensions/webservices/security/src/nsWebScriptsAccess.cpp +++ b/extensions/webservices/security/src/nsWebScriptsAccess.cpp @@ -240,7 +240,7 @@ nsWebScriptsAccess::CanAccess(nsIURI* aTransportURI, rv = mSecurityManager->IsCapabilityEnabled("UniversalBrowserRead", aAccessGranted); - if (NS_FAILED(rv) || aAccessGranted) + if (NS_FAILED(rv) || *aAccessGranted) return rv; rv = mSecurityManager->CheckSameOrigin(0, aTransportURI); diff --git a/extensions/xmlextras/security/src/nsWebScriptsAccess.cpp b/extensions/xmlextras/security/src/nsWebScriptsAccess.cpp index efff32246b24..8117e9f8be06 100755 --- a/extensions/xmlextras/security/src/nsWebScriptsAccess.cpp +++ b/extensions/xmlextras/security/src/nsWebScriptsAccess.cpp @@ -240,7 +240,7 @@ nsWebScriptsAccess::CanAccess(nsIURI* aTransportURI, rv = mSecurityManager->IsCapabilityEnabled("UniversalBrowserRead", aAccessGranted); - if (NS_FAILED(rv) || aAccessGranted) + if (NS_FAILED(rv) || *aAccessGranted) return rv; rv = mSecurityManager->CheckSameOrigin(0, aTransportURI);