mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
temporary groady hack to fix breakage in NS_OpenURI
This commit is contained in:
parent
c1ca0ebd36
commit
6d1e456319
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user