Index: third_party/WebKit/WebCore/bindings/js/JSHTMLFormElementCustom.cpp |
=================================================================== |
--- third_party/WebKit/WebCore/bindings/js/JSHTMLFormElementCustom.cpp (revision 9118) |
+++ third_party/WebKit/WebCore/bindings/js/JSHTMLFormElementCustom.cpp (working copy) |
@@ -62,7 +62,7 @@ |
Frame* activeFrame = asJSDOMWindow(exec->dynamicGlobalObject())->impl()->frame(); |
if (!activeFrame) |
return jsUndefined(); |
- static_cast<HTMLFormElement*>(impl())->submit(0, false, false, false); |
+ static_cast<HTMLFormElement*>(impl())->submit(0, false, !activeFrame->script()->anyPageIsProcessingUserGesture(), false); |
return jsUndefined(); |
} |