mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
nsNavHistory::AddDocumentRedirect doesn't handle INTERNAL redirects - bug 475069 r=mak77
This commit is contained in:
parent
d5cccedfce
commit
a7c6031376
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user