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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java

Issue 1180223004: Check user gesture before firing an intent in WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed failing test, added another Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java b/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java
index 7774de87c226f8469df02efe32b92d7077ba1ae8..880d3a1511f111984a67b95a50aa73784e3c0e60 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java
@@ -47,7 +47,9 @@ public class AwContentViewClient extends ContentViewClient implements ContentVid
return;
}
- AwContentsClient.sendBrowsingIntent(context, contentUrl);
+ // Comes from WebViewImpl::detectContentOnTouch in Blink, so must be user-initiated, and
+ // isn't a redirect.
+ AwContentsClient.sendBrowsingIntent(context, contentUrl, true, false);
}
@Override

Powered by Google App Engine
This is Rietveld 408576698