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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.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/AwContentsClientBridge.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java b/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java
index 4e2aaeafa38ff93fa9947828aec4163f5fc15b47..712c8013c32b0c286c6c9e5841f822cb9a4d38ca 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java
@@ -260,11 +260,12 @@ public class AwContentsClientBridge {
}
@CalledByNative
- private boolean shouldOverrideUrlLoading(String url) {
+ private boolean shouldOverrideUrlLoading(String url, boolean hasUserGesture,
+ boolean isRedirect) {
if (mClient.hasWebViewClient()) {
return mClient.shouldOverrideUrlLoading(url);
} else {
- return AwContentsClient.sendBrowsingIntent(mContext, url);
+ return AwContentsClient.sendBrowsingIntent(mContext, url, hasUserGesture, isRedirect);
}
}

Powered by Google App Engine
This is Rietveld 408576698