nsNavHistory::AddDocumentRedirect doesn't handle INTERNAL redirects - bug 475069 r=mak77

This commit is contained in:
Jeff Muizelaar 2009-01-29 14:26:04 -05:00
parent d5cccedfce
commit a7c6031376

View File

@ -5144,6 +5144,10 @@ nsNavHistory::AddDocumentRedirect(nsIChannel *aOldChannel,
{
NS_ASSERTION(NS_IsMainThread(), "This can only be called on the main thread");
// ignore internal redirects
if (aFlags & nsIChannelEventSink::REDIRECT_INTERNAL)
return NS_OK;
nsresult rv;
nsCOMPtr<nsIURI> oldURI, newURI;
rv = aOldChannel->GetURI(getter_AddRefs(oldURI));