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 c5231f3773fa64d14dffbbc95a5f4dbf01dd43f0..02094a5795641aa0dbeaf06d73ae6c3031f2714c 100644 |
--- a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp |
+++ b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp |
@@ -30,7 +30,6 @@ |
#include "core/inspector/MainThreadDebugger.h" |
-#include "bindings/core/v8/BindingSecurity.h" |
#include "bindings/core/v8/DOMWrapperWorld.h" |
#include "bindings/core/v8/ScriptController.h" |
#include "bindings/core/v8/V8Node.h" |
@@ -187,20 +186,6 @@ void MainThreadDebugger::unmuteConsole() |
FrameConsole::unmute(); |
} |
-bool MainThreadDebugger::callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Local<v8::Context> target) |
-{ |
- ExecutionContext* executionContext = toExecutionContext(target); |
- ASSERT(executionContext); |
- |
- if (executionContext->isMainThreadWorkletGlobalScope()) { |
- MainThreadWorkletGlobalScope* globalScope = toMainThreadWorkletGlobalScope(executionContext); |
- return globalScope && BindingSecurity::shouldAllowAccessTo(m_isolate, toLocalDOMWindow(toDOMWindow(calling)), globalScope, DoNotReportSecurityError); |
- } |
- |
- DOMWindow* window = toDOMWindow(target); |
- return window && BindingSecurity::shouldAllowAccessTo(m_isolate, toLocalDOMWindow(toDOMWindow(calling)), window, DoNotReportSecurityError); |
-} |
- |
int MainThreadDebugger::ensureDefaultContextInGroup(int contextGroupId) |
{ |
LocalFrame* frame = WeakIdentifierMap<LocalFrame>::lookup(contextGroupId); |