| Index: third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
|
| index cde65e4b2355b3f201fb4d285e913738e4ec73cf..a0407d44ac8b0b10303f49f24b0faae9ec9fe7df 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp
|
| @@ -235,6 +235,11 @@ class SourceStream : public v8::ScriptCompiler::ExternalSourceStream {
|
| void prepareDataOnMainThread(ScriptStreamer* streamer) {
|
| DCHECK(isMainThread());
|
|
|
| + if (m_cancelled) {
|
| + m_dataQueue.finish();
|
| + return;
|
| + }
|
| +
|
| // The Resource must still be alive; otherwise we should've cancelled
|
| // the streaming (if we have cancelled, the background thread is not
|
| // waiting).
|
|
|