adding some keyword support back in

git-svn-id: svn://10.0.0.236/trunk@52536 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
valeski%netscape.com
1999-11-02 07:18:44 +00:00
parent 68d3ee8a2a
commit f9329cacef
2 changed files with 2 additions and 12 deletions

View File

@@ -2202,21 +2202,16 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec,
convertFileToURL(urlStr, urlSpec);
rv = NS_NewURI(getter_AddRefs(uri), urlSpec, nsnull);
if (NS_FAILED(rv)) {
#if 0
// keyword failover
// we kick the following cases to the keyword server:
// * starts with a '?'
// * contains a space
// * is a single word (contains no dots or scheme) XXX: this breaks
// intranet host lookups. This latter case needs to be handled by
// dns notifications rather than string interrogation.
if ( (urlStr.FindChar('.') == -1) || (urlStr.First() == '?') || (urlStr.FindChar(' ') > -1) ) {
if ( (urlStr.First() == '?') || (urlStr.FindChar(' ') > -1) ) {
nsAutoString keywordSpec("keyword:");
keywordSpec.Append(aURLSpec);
rv = NS_NewURI(getter_AddRefs(uri), keywordSpec, nsnull);
}
#endif // 0
if (NS_FAILED(rv)) {
PRInt32 colon, fSlash = urlSpec.FindChar('/');