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

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

Issue 1899163002: BodyStreamBuffer's drainAs* function should lock stream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@body-stream-buffer-test-refactoring
Patch Set: Created 4 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/FetchManager.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
index f38dc92e552a43869825ca47acb01de19bfedf18..d50b1634affc1fceffba90581d1c7e28ea620e1b 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
@@ -566,7 +566,7 @@ void FetchManager::Loader::performHTTPFetch(bool corsFlag, bool corsPreflightFla
if (m_request->method() != HTTPNames::GET && m_request->method() != HTTPNames::HEAD) {
if (m_request->buffer())
- request.setHTTPBody(m_request->buffer()->drainAsFormData());
+ request.setHTTPBody(m_request->buffer()->drainAsFormData(m_executionContext));
if (m_request->attachedCredential())
request.setAttachedCredential(m_request->attachedCredential());
}

Powered by Google App Engine
This is Rietveld 408576698