Don't do URI fixup if NS_NewURI throws some random error. Bug 335193, r=biesi, sr+branch181=darin

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@195319 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2006-04-25 01:53:26 +00:00
parent 809d14214b
commit 6d18ba3f93

View File

@@ -253,6 +253,10 @@ nsDefaultURIFixup::CreateFixupURI(const nsACString& aStringURI, PRUint32 aFixupF
// Just try to create an URL out of it
rv = NS_NewURI(aURI, uriString,
bUseNonDefaultCharsetForURI ? GetCharsetForUrlBar() : nsnull);
if (!*aURI && rv != NS_ERROR_MALFORMED_URI) {
return rv;
}
}
if (*aURI) {