-
jonlee@apple.com authored
https://bugs.webkit.org/show_bug.cgi?id=28633 <rdar://problem/7357787> Reviewed by Andy Estes. Source/WebCore: Test: fast/forms/submit-to-blank-multiple-times.html The call to reset the multiple form submission bool is pushed down from the mouseDown handler to handleMousePressEvent(), to include WK2 coverage, similar to keyEvent. * page/EventHandler.cpp: (WebCore::EventHandler::handleMousePressEvent): (WebCore::EventHandler::keyEvent): clarified old FIXME comment. Both key events and mouse events may submit a form multiple times, but the call to reset the handler should probably be in another abstraction layer. * page/mac/EventHandlerMac.mm: (WebCore::EventHandler::mouseDown): Source/WebKit/chromium: * src/WebViewImpl.cpp: (WebKit::WebViewImpl::mouseDown): Remove call to resetMultipleFormSubmissionProtection() since it will be made in platform-independent function EventHandler::handleMousePressEvent(). LayoutTests: New test that simulates mouse clicking submit button twice (which didn't work), as well as using the keyboard twice (which did work). * fast/forms/resources/submit-to-blank-multiple-times-form-action.html: Added. * fast/forms/submit-to-blank-multiple-times-expected.txt: Added. * fast/forms/submit-to-blank-multiple-times.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95226 268f45cc-cd09-0410-ab3c-d52691b4dbfc
3d7196a2