| Index: third_party/WebKit/Source/modules/worklet/Worklet.cpp
|
| diff --git a/third_party/WebKit/Source/modules/worklet/Worklet.cpp b/third_party/WebKit/Source/modules/worklet/Worklet.cpp
|
| index 950b1b63e865515f719a634d8eb0470b6ebc2478..27e10fa89e8977edbbd159ee368ca4a3d6816c6c 100644
|
| --- a/third_party/WebKit/Source/modules/worklet/Worklet.cpp
|
| +++ b/third_party/WebKit/Source/modules/worklet/Worklet.cpp
|
| @@ -42,8 +42,8 @@ ScriptPromise Worklet::import(ScriptState* scriptState, const String& url)
|
| m_scriptLoaders.append(WorkerScriptLoader::create());
|
| m_scriptLoaders.last()->loadAsynchronously(*getExecutionContext(), scriptURL, DenyCrossOriginRequests,
|
| getExecutionContext()->securityContext().addressSpace(),
|
| - bind(&Worklet::onResponse, this, m_scriptLoaders.last().get()),
|
| - bind(&Worklet::onFinished, this, m_scriptLoaders.last().get(), resolver));
|
| + bind(&Worklet::onResponse, wrapCrossThreadPersistent(this), m_scriptLoaders.last().get()),
|
| + bind(&Worklet::onFinished, wrapCrossThreadPersistent(this), m_scriptLoaders.last().get(), wrapCrossThreadPersistent(resolver)));
|
|
|
| return promise;
|
| }
|
|
|