Show a useful error message if a page claims to be compressed and isn't. Bug
184144, patch by Vidar Braut Haarr <vhaarr+bmo@gmail.com>, r=darin, sr=bzbarsky
This commit is contained in:
@@ -2945,6 +2945,10 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI *aURI,
|
||||
// Proxy connection was refused.
|
||||
error.AssignLiteral("proxyConnectFailure");
|
||||
break;
|
||||
case NS_ERROR_INVALID_CONTENT_ENCODING:
|
||||
// Bad Content Encoding.
|
||||
error.AssignLiteral("contentEncodingError");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user