Bug 62402 Do not fixup IP address literals [was: IPv6 IPs]
r=biesi sr=darin git-svn-id: svn://10.0.0.236/trunk@168483 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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:");
|
||||
|
||||
Reference in New Issue
Block a user