Bug 1228116 - Relax Security checks for DTD loads. r=sicking

This commit is contained in:
Christoph Kerschbaumer 2015-11-25 13:38:05 -08:00
parent 1804624cd2
commit 3219a087e1

View File

@ -46,6 +46,11 @@ static bool SchemeIs(nsIURI* aURI, const char* aScheme)
static nsresult
DoCheckLoadURIChecks(nsIURI* aURI, nsILoadInfo* aLoadInfo)
{
// Bug 1228117: determine the correct security policy for DTD loads
if (aLoadInfo->GetExternalContentPolicyType() == nsIContentPolicy::TYPE_DTD) {
return NS_OK;
}
nsresult rv = NS_OK;
nsCOMPtr<nsIPrincipal> loadingPrincipal = aLoadInfo->LoadingPrincipal();