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

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

Issue 2292763002: [Fetch API] Implement Request.formData and Response.formData. (Closed)
Patch Set: Created 3 years, 11 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 bd4a4dfcfa9dc8c685128bd2574425beb071c3de..ffd0ad50f5f5946cf6c2def26461fc6eb1639791 100644
--- a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp
+++ b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp
@@ -46,6 +46,11 @@ class BodyStreamBuffer::LoaderClient final
m_client->didFetchDataLoadedArrayBuffer(arrayBuffer);
}
+ void didFetchDataLoadedFormData(FormData* formData) override {
+ m_buffer->endLoading();
+ m_client->didFetchDataLoadedFormData(formData);
+ }
+
void didFetchDataLoadedString(const String& string) override {
m_buffer->endLoading();
m_client->didFetchDataLoadedString(string);
@@ -281,7 +286,8 @@ void BodyStreamBuffer::closeAndLockAndDisturb() {
}
void BodyStreamBuffer::close() {
- controller()->close();
+ if (controller())
+ controller()->close();
cancelConsumer();
}

Powered by Google App Engine
This is Rietveld 408576698