| 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 3d5453bffe9dd8635c6c8051a5dcf52ca9a5c2b9..e909f388b819ceecff6422c2d6b09a0ec419371c 100644
|
| --- a/third_party/WebKit/Source/modules/worklet/Worklet.cpp
|
| +++ b/third_party/WebKit/Source/modules/worklet/Worklet.cpp
|
| @@ -43,8 +43,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),
|
| - bind(&Worklet::onFinished, this, unretainedUnsafe(m_scriptLoaders.last().get()), resolver));
|
| + bind(&Worklet::onResponse, retainedRef(this)),
|
| + bind(&Worklet::onFinished, retainedRef(this), unretainedUnsafe(m_scriptLoaders.last().get()), retainedRef(resolver)));
|
|
|
| return promise;
|
| }
|
|
|