summaryrefslogtreecommitdiffstats
path: root/WebKit/android/jni/WebCoreFrameBridge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/jni/WebCoreFrameBridge.cpp')
-rw-r--r--WebKit/android/jni/WebCoreFrameBridge.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/WebKit/android/jni/WebCoreFrameBridge.cpp b/WebKit/android/jni/WebCoreFrameBridge.cpp
index bb59b73..6c97acc 100644
--- a/WebKit/android/jni/WebCoreFrameBridge.cpp
+++ b/WebKit/android/jni/WebCoreFrameBridge.cpp
@@ -738,6 +738,10 @@ static void CallPolicyFunction(JNIEnv* env, jobject obj, jint func, jint decisio
PolicyFunctionWrapper* pFunc = (PolicyFunctionWrapper*)func;
LOG_ASSERT(pFunc, "nativeCallPolicyFunction must take a valid function pointer!");
+ // If we are resending the form then we should reset the multiple submission protection.
+ if (decision == WebCore::PolicyUse)
+ pFrame->loader()->resetMultipleFormSubmissionProtection();
+
(pFrame->loader()->*(pFunc->func))((WebCore::PolicyAction)decision);
}