Chromium Code Reviews| 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 a339b1ecd5c3102b53769531af7d2b6cc6702c4a..c069cfd850ac2fb393c837b6868e214e07f6e8bb 100644 |
| --- a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp |
| +++ b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp |
| @@ -274,7 +274,7 @@ ScriptPromise BodyStreamBuffer::cancel(ScriptState* scriptState, ScriptValue rea |
| void BodyStreamBuffer::didGetReadable() |
| { |
| - if (!m_reader) |
| + if (!m_reader || !m_scriptState->getExecutionContext() || m_scriptState->getExecutionContext()->activeDOMObjectsAreStopped()) |
|
haraken
2016/07/12 10:29:51
Would it be better to clear m_reader when contextD
|
| return; |
| if (!m_streamNeedsMore) { |