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

Issue 1180223004: Check user gesture before firing an intent in WebView (Closed)

Created:
5 years, 6 months ago by mnaganov (inactive)
Modified:
5 years, 5 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Check user gesture before firing an intent in WebView Only fire intents when navigation is initiated by the user (via a gesture), or by the server (a redirect). This curbs down attempts to launch intents purely by JS code, which lead to a poor UX -- tasks appearing from nowhere. BUG=501633 Committed: https://crrev.com/849952a42e20bbc4ebd3d2805b085982b3f42730 Cr-Commit-Position: refs/heads/master@{#338133}

Patch Set 1 #

Patch Set 2 : Not relying on the throttle patch, need more tests #

Patch Set 3 : Fixed failing test, added another #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -19 lines) Patch
M android_webview/browser/aw_content_browser_client.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M android_webview/browser/aw_contents_client_bridge_base.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M android_webview/common/render_view_messages.h View 1 2 1 chunk +3 lines, -1 line 2 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsClient.java View 1 2 4 chunks +8 lines, -3 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldOverrideUrlLoadingTest.java View 1 2 3 chunks +61 lines, -5 lines 0 comments Download
M android_webview/native/aw_contents_client_bridge.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M android_webview/native/aw_contents_client_bridge.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M android_webview/renderer/aw_content_renderer_client.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 15 (5 generated)
mnaganov (inactive)
5 years, 5 months ago (2015-07-08 23:27:04 UTC) #2
sgurun-gerrit only
On 2015/07/08 23:27:04, mnaganov wrote: lgtm
5 years, 5 months ago (2015-07-09 01:48:52 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1180223004/40001
5 years, 5 months ago (2015-07-09 01:52:05 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/77275)
5 years, 5 months ago (2015-07-09 02:01:34 UTC) #7
mnaganov (inactive)
Hi Chris, can you please take a look at the change in android_webview/common/render_view_messages.h?
5 years, 5 months ago (2015-07-09 16:53:13 UTC) #9
palmer
LGTM, with a question about documentation. https://codereview.chromium.org/1180223004/diff/40001/android_webview/common/render_view_messages.h File android_webview/common/render_view_messages.h (right): https://codereview.chromium.org/1180223004/diff/40001/android_webview/common/render_view_messages.h#newcode103 android_webview/common/render_view_messages.h:103: // when creating ...
5 years, 5 months ago (2015-07-09 20:21:59 UTC) #10
mnaganov (inactive)
Thanks, Chris! https://codereview.chromium.org/1180223004/diff/40001/android_webview/common/render_view_messages.h File android_webview/common/render_view_messages.h (right): https://codereview.chromium.org/1180223004/diff/40001/android_webview/common/render_view_messages.h#newcode103 android_webview/common/render_view_messages.h:103: // when creating a popup window, and ...
5 years, 5 months ago (2015-07-09 20:35:23 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1180223004/40001
5 years, 5 months ago (2015-07-09 20:37:41 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-09 20:45:27 UTC) #14
commit-bot: I haz the power
5 years, 5 months ago (2015-07-09 20:47:12 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/849952a42e20bbc4ebd3d2805b085982b3f42730
Cr-Commit-Position: refs/heads/master@{#338133}

Powered by Google App Engine
This is Rietveld 408576698