Changeset 19940 in webkit
- Timestamp:
- Mar 1, 2007 11:59:15 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r19934 r19940 1 2007-03-01 Antti Koivisto <antti@apple.com> 2 3 Reviewed by Maciej. 4 5 HTTP layout test for http://bugs.webkit.org/show_bug.cgi?id=12690 6 REGRESSION: can not log in to bank of america with TOT webkit 7 <rdar://problem/4990044> 8 9 also for 10 http://bugs.webkit.org/show_bug.cgi?id=12604 11 http://bugs.webkit.org/show_bug.cgi?id=12020 12 13 * http/tests/misc/multiple-submit-expected.txt: Added. 14 * http/tests/misc/multiple-submit.html: Added. 15 * http/tests/misc/resources/post-echo-and-notify-done.cgi: Added. 16 1 17 2007-03-01 Kevin McCullough <kmccullough@apple.com> 2 18 -
trunk/WebCore/ChangeLog
r19934 r19940 1 2007-03-01 Antti Koivisto <antti@apple.com> 2 3 Reviewed by Maciej. 4 5 Fix http://bugs.webkit.org/show_bug.cgi?id=12690 6 REGRESSION: can not log in to bank of america with TOT webkit 7 <rdar://problem/4990044> 8 9 and http://bugs.webkit.org/show_bug.cgi?id=12604 10 REGRESSION: After closing the "Would you like to save password" sheet, the form fails 11 to submit automatically at http://www.mac.com/WebObjects/HomePage.woa 12 <rdar://problem/4871752> 13 14 and http://bugs.webkit.org/show_bug.cgi?id=12020 15 REGRESSION: Flickr uploading broken 16 <rdar://problem/4928662> 17 18 Turn protection against multiple forms submission back on. This approach is buggy 19 but it is way better than not having it at all. Not protecting against this 20 breaks number of major sites. 21 22 * bridge/mac/WebCoreAXObject.mm: 23 (-[WebCoreAXObject accessibilityPerformAction:]): 24 * loader/FrameLoader.cpp: 25 (WebCore::FrameLoader::resetMultipleFormSubmissionProtection): 26 (WebCore::FrameLoader::submitForm): 27 (WebCore::FrameLoader::receivedMainResourceError): 28 * loader/FrameLoader.h: 29 * page/EventHandler.cpp: 30 (WebCore::EventHandler::keyEvent): 31 * page/Frame.cpp: 32 (WebCore::Frame::setView): 33 * page/mac/EventHandlerMac.mm: 34 (WebCore::EventHandler::mouseDown): 35 1 36 2007-03-01 Kevin McCullough <kmccullough@apple.com> 2 37 -
trunk/WebCore/bridge/mac/WebCoreAXObject.mm
r19919 r19940 888 888 if (!actionElement) 889 889 return; 890 #ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION891 890 if (Frame* f = actionElement->document()->frame()) 892 891 f->loader()->resetMultipleFormSubmissionProtection(); 893 #endif894 892 actionElement->accessKeyAction(true); 895 893 } -
trunk/WebCore/loader/FrameLoader.cpp
r19902 r19940 1465 1465 } 1466 1466 1467 #ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION1468 1467 void FrameLoader::didNotOpenURL(const KURL& URL) 1469 1468 { … … 1476 1475 m_submittedFormURL = KURL(); 1477 1476 } 1478 #endif1479 1477 1480 1478 void FrameLoader::setEncoding(const String& name, bool userChosen) … … 2730 2728 void FrameLoader::submitForm(const FrameLoadRequest& request, Event* event) 2731 2729 { 2732 #ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION2733 2730 // FIXME: We'd like to remove this altogether and fix the multiple form submission issue another way. 2734 2731 // We do not want to submit more than one form from the same page, … … 2747 2744 m_submittedFormURL = request.resourceRequest().url(); 2748 2745 } 2749 #endif2750 2746 2751 2747 // FIXME: Why do we always pass true for userGesture? … … 3039 3035 3040 3036 if (m_state == FrameStateProvisional) { 3041 #ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION3042 3037 KURL failedURL = m_provisionalDocumentLoader->originalRequestCopy().url(); 3043 3038 didNotOpenURL(failedURL); 3044 #endif 3039 3045 3040 // We might have made a page cache item, but now we're bailing out due to an error before we ever 3046 3041 // transitioned to the new page (before WebFrameState == commit). The goal here is to restore any state -
trunk/WebCore/loader/FrameLoader.h
r19737 r19940 339 339 bool userGestureHint(); 340 340 341 #ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION342 341 void resetMultipleFormSubmissionProtection(); 343 342 void didNotOpenURL(const KURL&); 344 #endif345 343 346 344 void addData(const char* bytes, int length); … … 580 578 RefPtr<HTMLFormElement> m_formAboutToBeSubmitted; 581 579 HashMap<String, String> m_formValuesAboutToBeSubmitted; 582 #ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION583 580 KURL m_submittedFormURL; 584 #endif585 581 586 582 Timer<FrameLoader> m_redirectionTimer; -
trunk/WebCore/page/EventHandler.cpp
r19855 r19940 38 38 #include "FocusController.h" 39 39 #include "Frame.h" 40 #include "FrameLoader.h" 40 41 #include "FrameTree.h" 41 42 #include "FrameView.h" … … 1258 1259 return false; 1259 1260 1260 #ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION1261 1261 if (!keyEvent.isKeyUp()) 1262 loader()->resetMultipleFormSubmissionProtection(); 1263 #endif 1262 m_frame->loader()->resetMultipleFormSubmissionProtection(); 1264 1263 1265 1264 result = !node->dispatchKeyEvent(keyEvent); -
trunk/WebCore/page/Frame.cpp
r19925 r19940 276 276 d->m_view = view; 277 277 278 #ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION279 278 // Only one form submission is allowed per view of a part. 280 279 // Since this part may be getting reused as a result of being 281 280 // pulled from the back/forward cache, reset this flag. 282 281 loader()->resetMultipleFormSubmissionProtection(); 283 #endif284 282 } 285 283 -
trunk/WebCore/page/mac/EventHandlerMac.mm
r19884 r19940 456 456 457 457 BEGIN_BLOCK_OBJC_EXCEPTIONS; 458 #ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION 458 459 459 m_frame->loader()->resetMultipleFormSubmissionProtection(); 460 #endif 460 461 461 m_mouseDownView = nil; 462 462 dragState().m_dragSrc = 0;
Note: See TracChangeset
for help on using the changeset viewer.