temporary groady hack to fix breakage in NS_OpenURI

This commit is contained in:
danm%netscape.com 1999-08-31 06:49:26 +00:00
parent c1ca0ebd36
commit 6d1e456319
2 changed files with 8 additions and 0 deletions

View File

@ -1814,6 +1814,10 @@ nsresult nsDocumentBindInfo::Bind(nsIURI* aURL, nsIStreamListener* aListener, ns
nsCOMPtr<nsIChannel> channel;
rv = NS_OpenURI(getter_AddRefs(channel), aURL, loadGroup, eventSinkGetter);
// groady hack! NS_OpenURI fails the first time around, but works
// the second. so we are TEMPORARILY calling it twice to unblock
// clients who trip on the subsequent breakage this causes.
if (NS_FAILED(rv)) rv = NS_OpenURI(getter_AddRefs(channel), aURL, loadGroup, eventSinkGetter);
if (NS_FAILED(rv)) return rv;
if (postDataStream)

View File

@ -1814,6 +1814,10 @@ nsresult nsDocumentBindInfo::Bind(nsIURI* aURL, nsIStreamListener* aListener, ns
nsCOMPtr<nsIChannel> channel;
rv = NS_OpenURI(getter_AddRefs(channel), aURL, loadGroup, eventSinkGetter);
// groady hack! NS_OpenURI fails the first time around, but works
// the second. so we are TEMPORARILY calling it twice to unblock
// clients who trip on the subsequent breakage this causes.
if (NS_FAILED(rv)) rv = NS_OpenURI(getter_AddRefs(channel), aURL, loadGroup, eventSinkGetter);
if (NS_FAILED(rv)) return rv;
if (postDataStream)