summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-06-22 11:40:26 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-06-22 11:40:26 -0700
commit49c0406efa6c7982937774428f27d1172225119e (patch)
treee6f0618a8d3359c592ee561eea571a9defc25071 /WebKit/android/jni
parent461c3fcad8dc54fa3240dcc0cb8989e690408578 (diff)
parent8b69ec781c68f4bbaccf6245ef1d562eed206be8 (diff)
downloadexternal_webkit-49c0406efa6c7982937774428f27d1172225119e.zip
external_webkit-49c0406efa6c7982937774428f27d1172225119e.tar.gz
external_webkit-49c0406efa6c7982937774428f27d1172225119e.tar.bz2
Merge change 4941
* changes: Remove ANDROID_USER_GESTURE as the bug it fixed no longer applies.
Diffstat (limited to 'WebKit/android/jni')
-rw-r--r--WebKit/android/jni/WebCoreFrameBridge.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/WebKit/android/jni/WebCoreFrameBridge.cpp b/WebKit/android/jni/WebCoreFrameBridge.cpp
index 091417b..3e55693 100644
--- a/WebKit/android/jni/WebCoreFrameBridge.cpp
+++ b/WebKit/android/jni/WebCoreFrameBridge.cpp
@@ -584,17 +584,11 @@ WebFrame::canHandleRequest(const WebCore::ResourceRequest& request)
#ifdef ANDROID_INSTRUMENT
TimeCounterAuto counter(TimeCounter::JavaCallbackTimeCounter);
#endif
- // Internal loads are ok but any request that is due to a user hitting a key
- // should be checked.
- bool userGesture = false;
-#ifdef ANDROID_USER_GESTURE
- userGesture = request.userGesture();
-#endif
// always handle "POST" in place
if (equalIgnoringCase(request.httpMethod(), "POST"))
return true;
WebCore::KURL requestUrl = request.url();
- if (!mUserInitiatedClick && !userGesture &&
+ if (!mUserInitiatedClick &&
(requestUrl.protocolIs("http") || requestUrl.protocolIs("https") ||
requestUrl.protocolIs("file") || requestUrl.protocolIs("about") ||
requestUrl.protocolIs("javascript")))