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
Родитель 95ae0d5e57
Коммит 1ef7bc6ebd
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -183,8 +183,11 @@ nsCachedChromeChannel::GetOriginalURI(nsIURI* *aOriginalURI)
NS_IMETHODIMP NS_IMETHODIMP
nsCachedChromeChannel::SetOriginalURI(nsIURI* aOriginalURI) 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; mURI = aOriginalURI;
return NS_OK; return NS_OK;
} }
NS_IMETHODIMP NS_IMETHODIMP

Просмотреть файл

@ -183,8 +183,11 @@ nsCachedChromeChannel::GetOriginalURI(nsIURI* *aOriginalURI)
NS_IMETHODIMP NS_IMETHODIMP
nsCachedChromeChannel::SetOriginalURI(nsIURI* aOriginalURI) 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; mURI = aOriginalURI;
return NS_OK; return NS_OK;
} }
NS_IMETHODIMP NS_IMETHODIMP