Bug 62402 Do not fixup IP address literals [was: IPv6 IPs]

r=biesi sr=darin
This commit is contained in:
cst%andrew.cmu.edu 2005-01-29 00:38:11 +00:00
parent 54b9f1e953
commit a7e181d92b

View File

@ -120,9 +120,6 @@
#include "nsIExternalProtocolService.h"
#include "nsCExternalHandlerService.h"
// Used in the fixup code
#include "prnetdb.h"
#ifdef NS_DEBUG
/**
* Note: the log module is created during initialization which
@ -735,12 +732,6 @@ nsresult nsWebShell::EndPageLoad(nsIWebProgress *aProgress,
keywordsEnabled = PR_FALSE;
}
// Don't perform fixup on an IP address
PRNetAddr addr;
if(PR_StringToNetAddr(host.get(), &addr) == PR_SUCCESS) {
keywordsEnabled = PR_FALSE;
}
if(keywordsEnabled && (-1 == dotLoc)) {
// only send non-qualified hosts to the keyword server
nsCAutoString keywordSpec("keyword:");