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

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

Issue 2029163002: Worklets - Change inheritance heirarchy of WorkletGlobalScope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 4 years, 6 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/MainThreadDebugger.cpp
diff --git a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
index 2d84a78271e8b9de11572cd9ed4cde9610c5e0f5..f00ad8d7889952a2fc975c03cc2bda9a64516476 100644
--- a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
@@ -187,7 +187,7 @@ bool MainThreadDebugger::callingContextCanAccessContext(v8::Local<v8::Context> c
ExecutionContext* executionContext = toExecutionContext(target);
ASSERT(executionContext);
- if (executionContext->isWorkletGlobalScope()) {
+ if (executionContext->isMainThreadWorkletGlobalScope()) {
MainThreadWorkletGlobalScope* globalScope = toMainThreadWorkletGlobalScope(executionContext);
return globalScope && BindingSecurity::shouldAllowAccessTo(m_isolate, toLocalDOMWindow(toDOMWindow(calling)), globalScope, DoNotReportSecurityError);
}

Powered by Google App Engine
This is Rietveld 408576698