Bug 634986. Don't act like we're redirecting if we don't have a channel. r=jst, a=blocker

This commit is contained in:
Boris Zbarsky 2011-02-28 14:26:05 -05:00
Родитель 65b8dbe33c
Коммит 098e774a8e
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -1030,8 +1030,9 @@ nsObjectLoadingContent::AsyncOnChannelRedirect(nsIChannel *aOldChannel,
PRUint32 aFlags,
nsIAsyncVerifyRedirectCallback *cb)
{
// If we're already busy with a new load, cancel the redirect
if (aOldChannel != mChannel) {
// If we're already busy with a new load, or have no load at all,
// cancel the redirect.
if (!mChannel || aOldChannel != mChannel) {
return NS_BINDING_ABORTED;
}