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
This commit is contained in:
mscott%netscape.com 2000-04-10 00:25:22 +00:00
parent f03a6d38fe
commit 70b70cf844
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