| Index: third_party/WebKit/Source/core/dom/ExecutionContext.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp
|
| index 4a49825c094cff40829c9387b9d6ce4a44e15f07..6cd1f1172f45776b24102b9d53ecc4a7603ced27 100644
|
| --- a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp
|
| @@ -94,7 +94,7 @@ void ExecutionContext::postSuspendableTask(std::unique_ptr<SuspendableTask> task
|
| {
|
| m_suspendedTasks.append(std::move(task));
|
| if (!m_activeDOMObjectsAreSuspended)
|
| - postTask(BLINK_FROM_HERE, createSameThreadTask(&ExecutionContext::runSuspendableTasks, this));
|
| + postTask(BLINK_FROM_HERE, createSameThreadTask(&ExecutionContext::runSuspendableTasks, wrapPersistent(this)));
|
| }
|
|
|
| void ExecutionContext::notifyContextDestroyed()
|
| @@ -120,7 +120,7 @@ void ExecutionContext::resumeScheduledTasks()
|
| if (m_isRunSuspendableTasksScheduled)
|
| return;
|
| m_isRunSuspendableTasksScheduled = true;
|
| - postTask(BLINK_FROM_HERE, createSameThreadTask(&ExecutionContext::runSuspendableTasks, this));
|
| + postTask(BLINK_FROM_HERE, createSameThreadTask(&ExecutionContext::runSuspendableTasks, wrapPersistent(this)));
|
| }
|
|
|
| void ExecutionContext::suspendActiveDOMObjectIfNeeded(ActiveDOMObject* object)
|
|
|