Index: third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp |
diff --git a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp |
index a2a68f73bd24f1364d2b21c45ef1ae8ec0b768a3..108a8bf7fd1a66d788ee903b7f87c6ffd4675f1a 100644 |
--- a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp |
+++ b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp |
@@ -48,6 +48,11 @@ class BodyStreamBuffer::LoaderClient final |
client_->DidFetchDataLoadedArrayBuffer(array_buffer); |
} |
+ void DidFetchDataLoadedFormData(FormData* form_data) override { |
+ buffer_->EndLoading(); |
+ client_->DidFetchDataLoadedFormData(form_data); |
+ } |
+ |
void DidFetchDataLoadedString(const String& string) override { |
buffer_->EndLoading(); |
client_->DidFetchDataLoadedString(string); |
@@ -284,7 +289,8 @@ void BodyStreamBuffer::CloseAndLockAndDisturb() { |
} |
void BodyStreamBuffer::Close() { |
- Controller()->Close(); |
+ if (Controller()) |
yhirano
2017/05/10 05:59:36
Can you tell me why we need this change?
e_hakkinen
2017/05/11 11:01:51
Without this change, external/wpt/fetch/api/respon
yhirano
2017/05/12 11:54:12
Hmm, I think calling CloseAndLockAndDisturb in suc
|
+ Controller()->Close(); |
CancelConsumer(); |
} |