Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Issue 2553783003: Don't consume user gesture in RenderFrameProxy::navigate. (Closed)

Created:
4 years ago by alexmos
Modified:
4 years ago
CC:
chromium-reviews, nasko+codewatch_chromium.org, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, creis+watch_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't consume user gesture in RenderFrameProxy::navigate. RenderFrameProxy::navigate should never result in opening a new tab (see RenderFrameProxyHost::OnOpenURL, which DCHECKs that the disposition is for a current tab). Yet, it currently unconditionally consumes the user gesture. This leads to problems if a frame tries to later consume the gesture, e.g., by opening a popup, after navigating a remote frame. This CL removes that problematic consumeUserGesture() call. BUG=670770, 589894 Committed: https://crrev.com/70efdd1328c65ad6042b296659a8e3f733a4e2ca Cr-Commit-Position: refs/heads/master@{#436721}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -3 lines) Patch
M chrome/browser/chrome_site_per_process_browsertest.cc View 1 1 chunk +36 lines, -0 lines 0 comments Download
M content/renderer/render_frame_proxy.cc View 1 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 30 (19 generated)
alexmos
Nate, can you please take a look at whether this makes sense? The consumeUserGesture in ...
4 years ago (2016-12-06 01:58:05 UTC) #7
Łukasz Anforowicz
On 2016/12/06 01:58:05, alexmos wrote: > Nate, can you please take a look at whether ...
4 years ago (2016-12-06 17:43:47 UTC) #10
Łukasz Anforowicz
On 2016/12/06 01:58:05, alexmos wrote: > Nate, can you please take a look at whether ...
4 years ago (2016-12-06 17:47:36 UTC) #11
Nate Chapin
LGTM, but I'm not an OWNER out here.
4 years ago (2016-12-06 19:06:32 UTC) #12
alexmos
Charlie, can you please review for OWNERS?
4 years ago (2016-12-06 19:09:44 UTC) #14
Charlie Reis
Thanks! LGTM.
4 years ago (2016-12-06 19:28:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2553783003/1
4 years ago (2016-12-06 19:28:57 UTC) #17
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chrome_site_per_process_browsertest.cc: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-12-06 19:34:42 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2553783003/20001
4 years ago (2016-12-06 20:11:46 UTC) #25
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-06 21:06:21 UTC) #28
commit-bot: I haz the power
4 years ago (2016-12-06 21:10:35 UTC) #30
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/70efdd1328c65ad6042b296659a8e3f733a4e2ca
Cr-Commit-Position: refs/heads/master@{#436721}

Powered by Google App Engine
This is Rietveld 408576698