fixing bustage

git-svn-id: svn://10.0.0.236/trunk@130440 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com
2002-09-25 20:49:29 +00:00
parent 04ea54c330
commit 1d07c05e8f
2 changed files with 8 additions and 4 deletions

View File

@@ -5644,9 +5644,10 @@ nsDocShell::OnNewURI(nsIURI * aURI, nsIChannel * aChannel,
}
if (httpChannel) {
nsCOMPtr<nsIUploadChannel> uploadChannel(do_QueryInterface(channel));
nsCOMPtr<nsIUploadChannel> uploadChannel(do_QueryInterface(httpChannel));
if (uploadChannel) {
httpChannel->GetUploadStream(getter_AddRefs(inputStream));
uploadChannel->GetUploadStream(getter_AddRefs(inputStream));
}
}
}
/* Create SH Entry (mLSHE) only if there is a SessionHistory object (mSessionHistory) in
@@ -5870,7 +5871,10 @@ nsDocShell::AddToSessionHistory(nsIURI * aURI,
GetHttpChannel(aChannel, getter_AddRefs(httpChannel));
}
if (httpChannel) {
httpChannel->GetUploadStream(getter_AddRefs(inputStream));
nsCOMPtr<nsIUploadChannel> uploadChannel(do_QueryInterface(httpChannel));
if (uploadChannel) {
uploadChannel->GetUploadStream(getter_AddRefs(inputStream));
}
httpChannel->GetReferrer(getter_AddRefs(referrerURI));
discardLayoutState = ShouldDiscardLayoutState(httpChannel);