Index: third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp |
index 940ae99a86469645d31a91e72af4e2e083c0d614..8f6c5047013a43aa238201f9a300f6cad4c1ab9f 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorDebuggerAgent.cpp |
@@ -273,11 +273,9 @@ PassRefPtr<ScriptAsyncCallStack> InspectorDebuggerAgent::currentAsyncStackTraceF |
void InspectorDebuggerAgent::scriptExecutionBlockedByCSP(const String& directiveText) |
{ |
- if (m_v8DebuggerAgent->debugger().pauseOnExceptionsState() == V8Debugger::DontPauseOnExceptions) |
- return; |
RefPtr<JSONObject> directive = JSONObject::create(); |
directive->setString("directiveText", directiveText); |
- m_v8DebuggerAgent->breakProgram(InspectorFrontend::Debugger::Reason::CSPViolation, directive.release()); |
+ m_v8DebuggerAgent->breakProgramOnException(InspectorFrontend::Debugger::Reason::CSPViolation, directive.release()); |
} |
void InspectorDebuggerAgent::willExecuteScript(int scriptId) |