| Index: third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
|
| index dabdbe595bb926ebb1488a083b2cf3c5f56312e9..8316c404fb99f164a3f8392d6963c30007ff9d01 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
|
| @@ -63,6 +63,7 @@ namespace blink {
|
| static const char webglErrorFiredEventName[] = "webglErrorFired";
|
| static const char webglWarningFiredEventName[] = "webglWarningFired";
|
| static const char webglErrorNameProperty[] = "webglErrorName";
|
| +static const char scriptBlockedByCSPEventName[] = "scriptBlockedByCSP";
|
|
|
| namespace DOMDebuggerAgentState {
|
| static const char eventListenerBreakpoints[] = "eventListenerBreakpoints";
|
| @@ -631,6 +632,15 @@ void InspectorDOMDebuggerAgent::cancelNativeBreakpoint()
|
| m_v8Session->cancelPauseOnNextStatement();
|
| }
|
|
|
| +void InspectorDOMDebuggerAgent::scriptExecutionBlockedByCSP(const String& directiveText)
|
| +{
|
| + std::unique_ptr<protocol::DictionaryValue> eventData = preparePauseOnNativeEventData(scriptBlockedByCSPEventName, 0);
|
| + if (!eventData)
|
| + return;
|
| + eventData->setString("directiveText", directiveText);
|
| + pauseOnNativeEventIfNeeded(std::move(eventData), true);
|
| +}
|
| +
|
| void InspectorDOMDebuggerAgent::setXHRBreakpoint(ErrorString* errorString, const String& url)
|
| {
|
| if (url.isEmpty())
|
|
|