fixes bug 56629 "Proxy: Client->Proxy connection errors should show proxy,
not target hostname" r=bbaetz, sr=rpotts git-svn-id: svn://10.0.0.236/trunk@134769 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2567,6 +2567,14 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI *aURI, const PRUnichar *aUR
|
||||
// Port blocked for security reasons
|
||||
error.Assign(NS_LITERAL_STRING("deniedPortAccess"));
|
||||
break;
|
||||
case NS_ERROR_UNKNOWN_PROXY_HOST:
|
||||
// Proxy hostname could not be resolved.
|
||||
error.Assign(NS_LITERAL_STRING("proxyResolveFailure"));
|
||||
break;
|
||||
case NS_ERROR_PROXY_CONNECTION_REFUSED:
|
||||
// Proxy connection was refused.
|
||||
error.Assign(NS_LITERAL_STRING("proxyConnectFailure"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -931,7 +931,9 @@ nsresult nsWebShell::EndPageLoad(nsIWebProgress *aProgress,
|
||||
|
||||
// Errors to be shown only on top-level frames
|
||||
if ((aStatus == NS_ERROR_UNKNOWN_HOST ||
|
||||
aStatus == NS_ERROR_CONNECTION_REFUSED) &&
|
||||
aStatus == NS_ERROR_CONNECTION_REFUSED ||
|
||||
aStatus == NS_ERROR_UNKNOWN_PROXY_HOST ||
|
||||
aStatus == NS_ERROR_PROXY_CONNECTION_REFUSED) &&
|
||||
(isTopFrame || mUseErrorPages)) {
|
||||
DisplayLoadError(aStatus, url, nsnull);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user