зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1506821 - Redirect content is shown when redirecting to a blacklisted port. r=dragana
This commit is contained in:
Родитель
c81941d10b
Коммит
25a593d03e
|
@ -462,7 +462,8 @@ class nsHttpChannel final : public HttpBaseChannel,
|
|||
|
||||
inline static bool DoNotRender3xxBody(nsresult rv) {
|
||||
return rv == NS_ERROR_REDIRECT_LOOP || rv == NS_ERROR_CORRUPTED_CONTENT ||
|
||||
rv == NS_ERROR_UNKNOWN_PROTOCOL || rv == NS_ERROR_MALFORMED_URI;
|
||||
rv == NS_ERROR_UNKNOWN_PROTOCOL || rv == NS_ERROR_MALFORMED_URI ||
|
||||
rv == NS_ERROR_PORT_ACCESS_NOT_ALLOWED;
|
||||
}
|
||||
|
||||
// Report net vs cache time telemetry
|
||||
|
|
Загрузка…
Ссылка в новой задаче