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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp

Issue 2058133002: Fix DevTools support of worklets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move callingContextCanAccessContext to BindingSecurity 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/platform/v8_inspector/InspectedContext.cpp
diff --git a/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp b/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp
index 5b52e015a5436383989cf30a72017f8e324ca449..e9d95e131840566c40bf4c37281bf67511843107 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp
+++ b/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp
@@ -4,6 +4,7 @@
#include "platform/v8_inspector/InspectedContext.h"
+#include "bindings/core/v8/BindingSecurity.h"
#include "platform/v8_inspector/InjectedScript.h"
#include "platform/v8_inspector/V8Console.h"
#include "platform/v8_inspector/V8DebuggerImpl.h"
@@ -75,7 +76,7 @@ void InspectedContext::createInjectedScript()
v8::HandleScope handles(isolate());
v8::Local<v8::Context> localContext = context();
v8::Local<v8::Context> callingContext = isolate()->GetCallingContext();
- if (!callingContext.IsEmpty() && !m_debugger->client()->callingContextCanAccessContext(callingContext, localContext))
+ if (!callingContext.IsEmpty() && !BindingSecurity::callingContextCanAccessContext(isolate(), callingContext, localContext, DoNotReportSecurityError))
return;
m_injectedScript = InjectedScript::create(this);
}

Powered by Google App Engine
This is Rietveld 408576698