bug 333267 don't warn if the requesting location is null

r+sr=mscott
This commit is contained in:
cbiesinger%web.de 2006-04-09 12:45:50 +00:00
Родитель c9a1c5a1b7
Коммит a87c87f411
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -236,7 +236,11 @@ nsMsgContentPolicy::ShouldLoad(PRUint32 aContentType,
*aDecision = nsIContentPolicy::ACCEPT;
NS_ENSURE_ARG_POINTER(aContentLocation);
NS_ENSURE_ARG_POINTER(aRequestingLocation);
// NOTE: Not using NS_ENSURE_ARG_POINTER because this is a legitimate case
// that can happen, and it shouldn't print a warning message.
if (!aRequestingLocation)
return NS_ERROR_INVALID_POINTER;
#ifndef MOZ_THUNDERBIRD
// Go find out if we are dealing with mailnews. Anything else