r-jevering. now we try and resolve non-qualified hosts on windows first, before sending them to the keyword server

git-svn-id: svn://10.0.0.236/trunk@59470 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
valeski%netscape.com
2000-02-02 02:22:36 +00:00
parent 06a624e4ae
commit 7490277a7c
2 changed files with 2 additions and 26 deletions

View File

@@ -2080,19 +2080,7 @@ nsWebShell::LoadURL(const PRUnichar *aURLSpec,
spaceLoc = urlStr.FindChar(' ');
PRBool keyword = PR_FALSE;
if ( (qMarkLoc == 0)
#ifdef XP_PC
// This is windows only because windows is the
// only platform that utilizes WINS resolution
// (a DNS fallback) which can take several minutes to
// fail a resolve call if the host does not exist.
// Thus, this forces us to bypass DNS/WINS altogether
// on windows; for nonQualifiedHosts *only*.
// "nonQualifiedHost"
|| ( (qMarkLoc == -1) && (spaceLoc == -1) )
#endif // XP_PC
) {
if (qMarkLoc == 0) {
keyword = PR_TRUE;
} else if ( (spaceLoc > 0) &&
( (qMarkLoc == -1) || (spaceLoc < qMarkLoc) )) {