Bug 464956. Make .desktop files report a redirect not of type REDIRECT_INTERNAL so that we can use that type to detect redirects not under the control of the target resource. r+sr=biesi

This commit is contained in:
Boris Zbarsky 2009-01-12 10:40:44 -05:00
Родитель 578fe96d79
Коммит 45b16415a5
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -257,7 +257,8 @@ nsBaseChannel::HandleAsyncRedirect(nsIChannel* newChannel)
NS_ASSERTION(!mPump, "Shouldn't have gotten here");
PRBool doNotify = PR_TRUE;
if (NS_SUCCEEDED(mStatus)) {
nsresult rv = Redirect(newChannel, nsIChannelEventSink::REDIRECT_INTERNAL,
nsresult rv = Redirect(newChannel,
nsIChannelEventSink::REDIRECT_TEMPORARY,
PR_TRUE);
if (NS_FAILED(rv))
Cancel(rv);