зеркало из https://github.com/mozilla/pjs.git
Bug 62402 Do not fixup IP address literals [was: IPv6 IPs]
r=biesi sr=darin
This commit is contained in:
Родитель
533edb472b
Коммит
878cb9d17d
|
@ -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:");
|
||||
|
|
Загрузка…
Ссылка в новой задаче