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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/InjectedScript.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/InjectedScript.cpp
diff --git a/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp b/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp
index 868fdeabb4a10bbbd26e5c896eed010b25383bb0..b736b3550711572b2ec77848ab44dd45e410dd58 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp
+++ b/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp
@@ -30,6 +30,7 @@
#include "platform/v8_inspector/InjectedScript.h"
+#include "bindings/core/v8/BindingSecurity.h"
#include "platform/inspector_protocol/Parser.h"
#include "platform/inspector_protocol/String16.h"
#include "platform/inspector_protocol/Values.h"
@@ -276,7 +277,7 @@ bool InjectedScript::canAccessInspectedWindow() const
v8::Local<v8::Context> callingContext = m_context->isolate()->GetCallingContext();
if (callingContext.IsEmpty())
return true;
- return m_context->debugger()->client()->callingContextCanAccessContext(callingContext, m_context->context());
+ return BindingSecurity::callingContextCanAccessContext(m_context->debugger()->isolate(), callingContext, m_context->context(), DoNotReportSecurityError);
}
v8::Local<v8::Value> InjectedScript::v8Value() const

Powered by Google App Engine
This is Rietveld 408576698