View source for pages with post data needs to be disable (91341). Same patch from 092 branch. r=hixie sr=ben PDT+

git-svn-id: svn://10.0.0.236/branches/MOZILLA_0_9_4_BRANCH@105400 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
blakeross%telocity.com
2001-10-15 05:13:16 +00:00
parent f6942a3d2a
commit 994df90bb5
8 changed files with 103 additions and 3 deletions

View File

@@ -2371,6 +2371,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
//*****************************************************************************