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:
@@ -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
|
||||
//*****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user