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 0c753df28fa2475070378fe46e9b5df1b903517a..c7d910ac73277c1ce308e285cf9e03dcc2721388 100644 |
--- a/third_party/WebKit/Source/modules/worklet/Worklet.cpp |
+++ b/third_party/WebKit/Source/modules/worklet/Worklet.cpp |
@@ -43,16 +43,15 @@ 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::onResponse, this, m_scriptLoaders.last().get()), |
bind(&Worklet::onFinished, this, m_scriptLoaders.last().get(), resolver)); |
return promise; |
} |
-void Worklet::onResponse() |
+void Worklet::onResponse(WorkerScriptLoader* scriptLoader) |
{ |
- // TODO(ikilpatrick): Add devtools instrumentation on worklet script |
- // resource loading. |
+ InspectorInstrumentation::didReceiveScriptResponse(getExecutionContext(), scriptLoader->identifier()); |
} |
void Worklet::onFinished(WorkerScriptLoader* scriptLoader, ScriptPromiseResolver* resolver) |