| Index: third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| index dac95be11b5d65e70751095b81d9f729658e411c..7b46e8a2581e5b3aa075c9750c87312735b817de 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp
|
| @@ -99,6 +99,8 @@ void V8RuntimeAgentImpl::evaluate(
|
|
|
| if (doNotPauseOnExceptionsAndMuteConsole.fromMaybe(false))
|
| scope.ignoreExceptionsAndMuteConsole();
|
| + if (userGesture.fromMaybe(false))
|
| + scope.pretendUserGesture();
|
|
|
| if (includeCommandLineAPI.fromMaybe(false) && !scope.installCommandLineAPI())
|
| return;
|
| @@ -161,6 +163,8 @@ void V8RuntimeAgentImpl::callFunctionOn(ErrorString* errorString,
|
|
|
| if (doNotPauseOnExceptionsAndMuteConsole.fromMaybe(false))
|
| scope.ignoreExceptionsAndMuteConsole();
|
| + if (userGesture.fromMaybe(false))
|
| + scope.pretendUserGesture();
|
|
|
| v8::MaybeLocal<v8::Value> maybeFunctionValue = m_debugger->compileAndRunInternalScript(scope.context(), toV8String(m_debugger->isolate(), "(" + expression + ")"));
|
| // Re-initialize after running client's code, as it could have destroyed context or session.
|
| @@ -253,7 +257,7 @@ void V8RuntimeAgentImpl::releaseObjectGroup(ErrorString*, const String16& object
|
|
|
| void V8RuntimeAgentImpl::run(ErrorString* errorString)
|
| {
|
| - *errorString = "Not paused";
|
| + m_session->client()->resumeStartup();
|
| }
|
|
|
| void V8RuntimeAgentImpl::setCustomObjectFormatterEnabled(ErrorString*, bool enabled)
|
|
|