Index: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
index 0b89e7bf3b385792cc08dd229ae1b1903d8affd4..a8a677b36a4423c0038c223d52ccf77c836266eb 100644 |
--- a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp |
@@ -152,7 +152,7 @@ void V8DebuggerAgentImpl::enable(ErrorString* errorString) |
if (enabled()) |
return; |
- if (!m_session->client()->canExecuteScripts()) { |
+ if (!m_debugger->client()->canExecuteScripts(m_session->contextGroupId())) { |
*errorString = "Script execution is prohibited"; |
return; |
} |
@@ -200,7 +200,7 @@ void V8DebuggerAgentImpl::restore() |
DCHECK(!m_enabled); |
if (!m_state->booleanProperty(DebuggerAgentState::debuggerEnabled, false)) |
return; |
- if (!m_session->client()->canExecuteScripts()) |
+ if (!m_debugger->client()->canExecuteScripts(m_session->contextGroupId())) |
return; |
enable(); |