mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Backed out changeset e81f1e1c9c9f (bug 908933) for M1 Test failures
This commit is contained in:
parent
c299215bbb
commit
03a309c1c6
@ -220,22 +220,11 @@ CSPService::ShouldProcess(uint32_t aContentType,
|
||||
nsIPrincipal *aRequestPrincipal,
|
||||
int16_t *aDecision)
|
||||
{
|
||||
if (!aContentLocation) {
|
||||
if (!aContentLocation)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
if (aContentType != nsIContentPolicy::TYPE_OBJECT) {
|
||||
*aDecision = nsIContentPolicy::ACCEPT;
|
||||
return NS_OK;
|
||||
}
|
||||
return ShouldLoad(aContentType,
|
||||
aContentLocation,
|
||||
aRequestOrigin,
|
||||
aRequestContext,
|
||||
aMimeTypeGuess,
|
||||
aExtra,
|
||||
aRequestPrincipal,
|
||||
aDecision);
|
||||
*aDecision = nsIContentPolicy::ACCEPT;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* nsIChannelEventSink implementation */
|
||||
|
Loading…
Reference in New Issue
Block a user