зеркало из https://github.com/mozilla/gecko-dev.git
Fixing a bug in my previous checking. sr=jst@netscape.com
This commit is contained in:
Родитель
f867bd13b6
Коммит
c19fe6d0ad
|
@ -240,7 +240,7 @@ nsWebScriptsAccess::CanAccess(nsIURI* aTransportURI,
|
||||||
rv =
|
rv =
|
||||||
mSecurityManager->IsCapabilityEnabled("UniversalBrowserRead",
|
mSecurityManager->IsCapabilityEnabled("UniversalBrowserRead",
|
||||||
aAccessGranted);
|
aAccessGranted);
|
||||||
if (NS_FAILED(rv) || aAccessGranted)
|
if (NS_FAILED(rv) || *aAccessGranted)
|
||||||
return rv;
|
return rv;
|
||||||
|
|
||||||
rv = mSecurityManager->CheckSameOrigin(0, aTransportURI);
|
rv = mSecurityManager->CheckSameOrigin(0, aTransportURI);
|
||||||
|
|
|
@ -240,7 +240,7 @@ nsWebScriptsAccess::CanAccess(nsIURI* aTransportURI,
|
||||||
rv =
|
rv =
|
||||||
mSecurityManager->IsCapabilityEnabled("UniversalBrowserRead",
|
mSecurityManager->IsCapabilityEnabled("UniversalBrowserRead",
|
||||||
aAccessGranted);
|
aAccessGranted);
|
||||||
if (NS_FAILED(rv) || aAccessGranted)
|
if (NS_FAILED(rv) || *aAccessGranted)
|
||||||
return rv;
|
return rv;
|
||||||
|
|
||||||
rv = mSecurityManager->CheckSameOrigin(0, aTransportURI);
|
rv = mSecurityManager->CheckSameOrigin(0, aTransportURI);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче