Index: third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp |
index 77d6c371703b9e338536cbcf1707dc1962085519..3ec19ca54f74a75a5a8af881422106f95f0104cf 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp |
@@ -42,6 +42,7 @@ |
#include "core/inspector/InstrumentingAgents.h" |
#include "core/inspector/WorkerInspectorController.h" |
#include "core/page/Page.h" |
+#include "core/workers/MainThreadWorkletGlobalScope.h" |
#include "core/workers/WorkerGlobalScope.h" |
namespace blink { |
@@ -173,6 +174,13 @@ InstrumentingAgents* instrumentingAgentsForNonDocumentContext(ExecutionContext* |
{ |
if (context->isWorkerGlobalScope()) |
return instrumentationForWorkerGlobalScope(toWorkerGlobalScope(context)); |
+ |
+ if (context->isWorkletGlobalScope()) { |
pfeldman
2016/03/15 00:34:56
Is this only used for the scriptImported instrumen
ikilpatrick
2016/03/17 16:46:44
This is used for the willExecuteScript instrumenta
|
+ LocalFrame* frame = toMainThreadWorkletGlobalScope(context)->frame(); |
+ if (frame) |
+ return instrumentingAgentsFor(frame); |
+ } |
+ |
return 0; |
} |