Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Unified Diff: third_party/WebKit/Source/core/loader/resource/ImageResource.cpp

Issue 2610083002: Fix response header correspondence in multipart image
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
diff --git a/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp b/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
index 07888c2cbe7b940b9e39a7772c084c63f4d97b8b..86a5a447d14493e29484768f22a58db3cd5bec82 100644
--- a/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
+++ b/third_party/WebKit/Source/core/loader/resource/ImageResource.cpp
@@ -453,13 +453,14 @@ void ImageResource::onePartInMultipartReceived(
const ResourceResponse& response) {
DCHECK(m_multipartParser);
- setResponse(response);
if (m_multipartParsingState == MultipartParsingState::WaitingForFirstPart) {
// We have nothing to do because we don't have any data.
+ setResponse(response);
m_multipartParsingState = MultipartParsingState::ParsingFirstPart;
return;
}
updateImageAndClearBuffer();
+ setResponse(response);
if (m_multipartParsingState == MultipartParsingState::ParsingFirstPart) {
m_multipartParsingState = MultipartParsingState::FinishedParsingFirstPart;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698