| Index: content/renderer/render_frame_impl.cc
|
| diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
|
| index 348f57da7bff23781c8704f4fb9fb3bf66a4aae0..f8573a5c48e3106706500f823ca22a1991aeaf39 100644
|
| --- a/content/renderer/render_frame_impl.cc
|
| +++ b/content/renderer/render_frame_impl.cc
|
| @@ -1968,7 +1968,7 @@ void RenderFrameImpl::OnJavaScriptExecuteRequestForTests(
|
| // A bunch of tests expect to run code in the context of a user gesture, which
|
| // can grant additional privileges (e.g. the ability to create popups).
|
| std::unique_ptr<blink::WebScopedUserGesture> gesture(
|
| - has_user_gesture ? new blink::WebScopedUserGesture : nullptr);
|
| + has_user_gesture ? new blink::WebScopedUserGesture(frame_) : nullptr);
|
| v8::HandleScope handle_scope(blink::mainThreadIsolate());
|
| v8::Local<v8::Value> result =
|
| frame_->executeScriptAndReturnValue(WebScriptSource(jscript));
|
| @@ -2294,7 +2294,7 @@ bool RenderFrameImpl::RunJavaScriptMessage(JavaScriptMessageType type,
|
| return false;
|
|
|
| int32_t message_length = static_cast<int32_t>(message.length());
|
| - if (WebUserGestureIndicator::processedUserGestureSinceLoad()) {
|
| + if (WebUserGestureIndicator::processedUserGestureSinceLoad(frame_)) {
|
| UMA_HISTOGRAM_COUNTS("JSDialogs.CharacterCount.UserGestureSinceLoad",
|
| message_length);
|
| } else {
|
| @@ -4975,8 +4975,8 @@ void RenderFrameImpl::OnCommitNavigation(
|
| // If the request was initiated in the context of a user gesture then make
|
| // sure that the navigation also executes in the context of a user gesture.
|
| std::unique_ptr<blink::WebScopedUserGesture> gesture(
|
| - request_params.has_user_gesture ? new blink::WebScopedUserGesture
|
| - : nullptr);
|
| + request_params.has_user_gesture ? new blink::WebScopedUserGesture(frame_)
|
| + : nullptr);
|
|
|
| NavigateInternal(common_params, StartNavigationParams(), request_params,
|
| std::move(stream_override));
|
|
|