Bug 536466. Patch by Honza Bambas <honzab.moz@firemni.cz>, r=bz, a1.9.0.next=dveditz

git-svn-id: svn://10.0.0.236/trunk@260889 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
alqahira%ardisson.org 2010-07-26 04:29:39 +00:00
parent 6ab64cd8ca
commit 15ff035be1

View File

@ -5081,6 +5081,12 @@ nsDocShell::OnRedirectStateChange(nsIChannel* aOldChannel,
return; // nothing to tell anybody about return; // nothing to tell anybody about
AddToGlobalHistory(oldURI, PR_TRUE, aOldChannel); AddToGlobalHistory(oldURI, PR_TRUE, aOldChannel);
} }
if (!(aRedirectFlags & nsIChannelEventSink::REDIRECT_INTERNAL) &&
mLoadType & (LOAD_CMD_RELOAD | LOAD_CMD_HISTORY)) {
mLoadType = LOAD_NORMAL_REPLACE;
SetHistoryEntry(&mLSHE, nsnull);
}
} }
NS_IMETHODIMP NS_IMETHODIMP