зеркало из https://github.com/mozilla/gecko-dev.git
Bug 792101 - security.mixed_content.block_active_content causes crash in nsMixedContentBlocker::ShouldLoad (r=smaug)
This commit is contained in:
Родитель
950e519d55
Коммит
f48d9d45c1
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче