diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 23e8946f99a..b7447689a7e 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -3777,6 +3777,17 @@ nsDocShell::OnNewURI(nsIURI *aURI, nsIChannel *aChannel, PRUint32 aLoadType) } SetCurrentURI(aURI); + // if there's a refresh header in the channel, this method + // will set it up for us. + SetupRefreshURI(aChannel); + + mInitialPageLoad = PR_FALSE; + return NS_OK; +} + +NS_IMETHODIMP +nsDocShell::SetupRefreshURI(nsIChannel * aChannel) +{ nsCOMPtr httpChannel(do_QueryInterface(aChannel)); if(httpChannel) { @@ -3859,7 +3870,6 @@ nsDocShell::OnNewURI(nsIURI *aURI, nsIChannel *aChannel, PRUint32 aLoadType) } } - mInitialPageLoad = PR_FALSE; return NS_OK; }