Bug 1175299 - Translate the content policy type obtained in nsMixedContentBlocker::AsyncOnChannelRedirect to an external one before invoking the content policy implementation; r=smaug

This commit is contained in:
Ehsan Akhgari 2015-06-16 17:49:21 -04:00
parent 188bd4648b
commit 8f1760d60d

View File

@ -271,7 +271,7 @@ nsMixedContentBlocker::AsyncOnChannelRedirect(nsIChannel* aOldChannel,
}
int16_t decision = REJECT_REQUEST;
rv = ShouldLoad(contentPolicyType,
rv = ShouldLoad(nsContentUtils::InternalContentPolicyTypeToExternal(contentPolicyType),
newUri,
requestingLocation,
loadInfo->LoadingNode(),