| Index: Source/core/dom/ScriptRunner.cpp
|
| diff --git a/Source/core/dom/ScriptRunner.cpp b/Source/core/dom/ScriptRunner.cpp
|
| index 7987bf5098300901c9c579c33f4ad0dc081ca6e3..612aaf873cc44c771c38b4b4c59c113313235541 100644
|
| --- a/Source/core/dom/ScriptRunner.cpp
|
| +++ b/Source/core/dom/ScriptRunner.cpp
|
| @@ -225,7 +225,7 @@ void ScriptRunner::postTaskIfOneIsNotAlreadyInFlight()
|
| return;
|
|
|
| // FIXME: Rename task() so that it's obvious it cancels any pending task.
|
| - Platform::current()->currentThread()->scheduler()->postLoadingTask(FROM_HERE, m_executeScriptsTaskFactory.task());
|
| + Platform::current()->currentThread()->scheduler()->postLoadingTask(FROM_HERE, m_executeScriptsTaskFactory.cancelAndCreate());
|
| }
|
|
|
| DEFINE_TRACE(ScriptRunner)
|
|
|