forked from mirrors/gecko-dev
Bug 1123854 - Remove some out of memory checks in caps/. r=jst
This commit is contained in:
parent
26d7b378be
commit
c9d51e1ad0
2 changed files with 0 additions and 4 deletions
|
|
@ -116,7 +116,6 @@ nsNullPrincipal::Init(uint32_t aAppId, bool aInMozBrowser)
|
|||
}
|
||||
|
||||
mURI = new nsNullPrincipalURI(str);
|
||||
NS_ENSURE_TRUE(mURI, NS_ERROR_OUT_OF_MEMORY);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -986,8 +986,6 @@ nsScriptSecurityManager::CreateCodebasePrincipal(nsIURI* aURI, uint32_t aAppId,
|
|||
}
|
||||
|
||||
nsRefPtr<nsPrincipal> codebase = new nsPrincipal();
|
||||
if (!codebase)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
nsresult rv = codebase->Init(aURI, aAppId, aInMozBrowser);
|
||||
if (NS_FAILED(rv))
|
||||
|
|
@ -1269,7 +1267,6 @@ nsresult nsScriptSecurityManager::Init()
|
|||
|
||||
// Create our system principal singleton
|
||||
nsRefPtr<nsSystemPrincipal> system = new nsSystemPrincipal();
|
||||
NS_ENSURE_TRUE(system, NS_ERROR_OUT_OF_MEMORY);
|
||||
|
||||
mSystemPrincipal = system;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue