mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Bug 62402 Do not fixup IP address literals [was: IPv6 IPs]
r=biesi sr=darin
This commit is contained in:
parent
54b9f1e953
commit
a7e181d92b
@ -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:");
|
||||
|
Loading…
Reference in New Issue
Block a user