Bug #34769 (this change is actually dougt's). Don't allow the chrome cache channel to stomp on it's original

uri if it's already been set.
r=waterson,mscott
a=leaf


git-svn-id: svn://10.0.0.236/trunk@65541 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mscott%netscape.com 2000-04-10 00:25:22 +00:00
parent 22ecf769a5
commit 4e309e8bd7
2 changed files with 8 additions and 2 deletions

View File

@ -183,8 +183,11 @@ nsCachedChromeChannel::GetOriginalURI(nsIURI* *aOriginalURI)
NS_IMETHODIMP
nsCachedChromeChannel::SetOriginalURI(nsIURI* aOriginalURI)
{
// don't stp on a uri if we already have one there...this is a work around fix
// for Bug #34769.
if (!mURI)
mURI = aOriginalURI;
return NS_OK;
return NS_OK;
}
NS_IMETHODIMP

View File

@ -183,8 +183,11 @@ nsCachedChromeChannel::GetOriginalURI(nsIURI* *aOriginalURI)
NS_IMETHODIMP
nsCachedChromeChannel::SetOriginalURI(nsIURI* aOriginalURI)
{
// don't stp on a uri if we already have one there...this is a work around fix
// for Bug #34769.
if (!mURI)
mURI = aOriginalURI;
return NS_OK;
return NS_OK;
}
NS_IMETHODIMP