mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 261339 Setting capability.policy.default.Window.top to noAccess seems to crash mozilla
r=caillon sr=dveditz
This commit is contained in:
parent
37d49383e2
commit
ffa869708f
@ -918,6 +918,7 @@ nsScriptSecurityManager::LookupPolicy(nsIPrincipal* aPrincipal,
|
||||
nsresult rv;
|
||||
result->level = SCRIPT_SECURITY_UNDEFINED_ACCESS;
|
||||
|
||||
DomainPolicy* dpolicy = nsnull;
|
||||
//-- Initialize policies if necessary
|
||||
if (mPolicyPrefsChanged)
|
||||
{
|
||||
@ -925,9 +926,10 @@ nsScriptSecurityManager::LookupPolicy(nsIPrincipal* aPrincipal,
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
}
|
||||
|
||||
DomainPolicy* dpolicy = nsnull;
|
||||
aPrincipal->GetSecurityPolicy((void**)&dpolicy);
|
||||
else
|
||||
{
|
||||
aPrincipal->GetSecurityPolicy((void**)&dpolicy);
|
||||
}
|
||||
|
||||
if (!dpolicy && mOriginToPolicyMap)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user