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

Unified Diff: third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp

Issue 2292763002: [Fetch API] Implement Request.formData and Response.formData. (Closed)
Patch Set: Rebase Created 3 years, 8 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
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();
}

Powered by Google App Engine
This is Rietveld 408576698