Bug #56938 --> Implement stand alone method for setting up a refresh URI in the docshell given just
a channel. sr=rpotts r=sspitzer git-svn-id: svn://10.0.0.236/branches/Netscape_20000922_BRANCH@82073 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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<nsIHTTPChannel> httpChannel(do_QueryInterface(aChannel));
|
||||
if(httpChannel)
|
||||
{
|
||||
@@ -3859,7 +3870,6 @@ nsDocShell::OnNewURI(nsIURI *aURI, nsIChannel *aChannel, PRUint32 aLoadType)
|
||||
}
|
||||
}
|
||||
|
||||
mInitialPageLoad = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user