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 d79b5cce24af4d41018c10caa32bd078d9fcd1de..103363e7d9dc78e53bffb33bc11f2ae1a0ef7f4f 100644 |
--- a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp |
+++ b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp |
@@ -145,6 +145,12 @@ bool BodyStreamBuffer::hasPendingActivity() const |
return m_loader || (m_stream->isLocked() && m_stream->stateInternal() == ReadableStream::Readable); |
} |
+void BodyStreamBuffer::stop() |
+{ |
+ m_reader = nullptr; |
+ m_handle = nullptr; |
+} |
+ |
void BodyStreamBuffer::pullSource() |
{ |
ASSERT(!m_streamNeedsMore); |