зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
578fe96d79
Коммит
45b16415a5
|
@ -257,7 +257,8 @@ nsBaseChannel::HandleAsyncRedirect(nsIChannel* newChannel)
|
||||||
NS_ASSERTION(!mPump, "Shouldn't have gotten here");
|
NS_ASSERTION(!mPump, "Shouldn't have gotten here");
|
||||||
PRBool doNotify = PR_TRUE;
|
PRBool doNotify = PR_TRUE;
|
||||||
if (NS_SUCCEEDED(mStatus)) {
|
if (NS_SUCCEEDED(mStatus)) {
|
||||||
nsresult rv = Redirect(newChannel, nsIChannelEventSink::REDIRECT_INTERNAL,
|
nsresult rv = Redirect(newChannel,
|
||||||
|
nsIChannelEventSink::REDIRECT_TEMPORARY,
|
||||||
PR_TRUE);
|
PR_TRUE);
|
||||||
if (NS_FAILED(rv))
|
if (NS_FAILED(rv))
|
||||||
Cancel(rv);
|
Cancel(rv);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче