0

fix PDF load issue (414827)

BUG=414827

Review URL: https://codereview.chromium.org/672333002

Cr-Commit-Position: refs/heads/master@{#301009}
This commit is contained in:
gene
2014-10-23 17:56:53 -07:00
committed by Commit bot
parent bfc3a2a8df
commit 7cafb2ce64

@ -298,6 +298,15 @@ void DocumentLoader::DidOpen(int32_t result) {
return;
}
int32_t http_code = loader_.GetResponseInfo().GetStatusCode();
if (http_code >= 400 && http_code < 500) {
// Error accessing resource. 4xx error indicate subsequent requests
// will fail too.
// E.g. resource has been removed from the server while loading it.
// https://code.google.com/p/chromium/issues/detail?id=414827
return;
}
is_multipart_ = false;
current_chunk_size_ = 0;
current_chunk_read_ = 0;