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 de8806f7d45ddc579f591abdaa133208109a0d28..5b93382b3c20d76119409209f515be15a329289e 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()) { |
+ LocalFrame* frame = toMainThreadWorkletGlobalScope(context)->frame(); |
+ if (frame) |
+ return instrumentingAgentsFor(frame); |
+ } |
+ |
return 0; |
} |