| Index: third_party/WebKit/Source/core/dom/PendingScript.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/PendingScript.cpp b/third_party/WebKit/Source/core/dom/PendingScript.cpp
|
| index 270cde456bc7af05605f6f0f273869830a54a54b..108e57b38d1980feb00d8eef5a012709fa67e656 100644
|
| --- a/third_party/WebKit/Source/core/dom/PendingScript.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/PendingScript.cpp
|
| @@ -222,7 +222,9 @@ bool PendingScript::errorOccurred() const {
|
| return false;
|
| }
|
|
|
| -void PendingScript::prepareToSuspend() {
|
| +void PendingScript::onMemoryStateChange(MemoryState state) {
|
| + if (state != MemoryState::SUSPENDED)
|
| + return;
|
| if (!m_streamer)
|
| return;
|
| m_streamer->cancel();
|
|
|