Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp

Issue 1745253002: [Worklets] Add basic debugging to main thread worklets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698