Need means to reuse/reload current page without refetching from server (40867, branch solution). Patch by Rick Potts <rpotts@netscape.com>. r=bbaetz sr=blake

git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_9_2_BRANCH@99567 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
blakeross%telocity.com
2001-07-19 04:52:44 +00:00
parent 9d57fbad2b
commit 032dc1e383
4 changed files with 60 additions and 1 deletions

View File

@@ -2358,6 +2358,26 @@ nsDocShell::GetSessionHistory(nsISHistory ** aSessionHistory)
}
NS_IMETHODIMP
nsDocShell::GetPostData(nsIInputStream **aPostStream)
{
NS_ENSURE_ARG_POINTER(aPostStream);
if (mLSHE) {
mLSHE->GetPostData(aPostStream);
}
else if (mOSHE) {
mOSHE->GetPostData(aPostStream);
}
else {
// XXX: If session history is disabled, then there is no way to
// get the post data :-(
*aPostStream = nsnull;
}
return NS_OK;
}
//*****************************************************************************
// nsDocShell::nsIBaseWindow
//*****************************************************************************