Bug 792101 - security.mixed_content.block_active_content causes crash in nsMixedContentBlocker::ShouldLoad (r=smaug)

This commit is contained in:
Tanvi Vyas 2012-09-25 10:51:51 -07:00
Родитель 950e519d55
Коммит f48d9d45c1
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -195,6 +195,15 @@ nsMixedContentBlocker::ShouldProcess(PRUint32 aContentType,
nsIPrincipal* aRequestPrincipal,
PRInt16* aDecision)
{
if(!aContentLocation) {
// aContentLocation may be null when a plugin is loading without an associated URI resource
if(aContentType == TYPE_OBJECT) {
return NS_OK;
} else {
return NS_ERROR_FAILURE;
}
}
return ShouldLoad(aContentType, aContentLocation, aRequestingLocation,
aRequestingContext, aMimeGuess, aExtra, aRequestPrincipal,
aDecision);