mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1228116 - Relax Security checks for DTD loads. r=sicking
This commit is contained in:
parent
1804624cd2
commit
3219a087e1
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user