Changeset 18011 in webkit


Ignore:
Timestamp:
Dec 4, 2006 4:49:16 PM (17 years ago)
Author:
kmccullo
Message:

Reviewed by Darin.

  • removed the guards for the "multiple forms submission" issue, which may not be an issue anymore and the guards prevent perfectly legitimate websites from working correctly.
  • bridge/mac/FrameMac.mm: (WebCore::FrameMac::setView):
  • bridge/mac/WebCoreAXObject.mm: (-[WebCoreAXObject accessibilityPerformAction:]):
  • bridge/win/FrameWin.cpp: (WebCore::FrameWin::keyPress):
  • config.h:
  • loader/FrameLoader.cpp: (WebCore::FrameLoader::submitForm):
  • loader/FrameLoader.h:
  • loader/mac/FrameLoaderMac.mm: (WebCore::FrameLoader::receivedMainResourceError):
  • loader/qt/FrameLoaderQt.cpp: (WebCore::FrameLoader::submitForm):
  • page/Frame.cpp: (WebCore::Frame::setView):
  • page/mac/EventHandlerMac.mm: (WebCore::EventHandler::keyEvent): (WebCore::EventHandler::mouseDown):
  • platform/qt/FrameQt.cpp: (WebCore::FrameQt::keyEvent):
Location:
trunk/WebCore
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r18009 r18011  
     12006-12-04  Kevin McCullough  <KMcCullough@apple.com>
     2
     3        Reviewed by Darin.
     4
     5        - removed the guards for the "multiple forms submission" issue, which may not be
     6          an issue anymore and the guards prevent perfectly legitimate websites from
     7          working correctly.
     8
     9        * bridge/mac/FrameMac.mm:
     10        (WebCore::FrameMac::setView):
     11        * bridge/mac/WebCoreAXObject.mm:
     12        (-[WebCoreAXObject accessibilityPerformAction:]):
     13        * bridge/win/FrameWin.cpp:
     14        (WebCore::FrameWin::keyPress):
     15        * config.h:
     16        * loader/FrameLoader.cpp:
     17        (WebCore::FrameLoader::submitForm):
     18        * loader/FrameLoader.h:
     19        * loader/mac/FrameLoaderMac.mm:
     20        (WebCore::FrameLoader::receivedMainResourceError):
     21        * loader/qt/FrameLoaderQt.cpp:
     22        (WebCore::FrameLoader::submitForm):
     23        * page/Frame.cpp:
     24        (WebCore::Frame::setView):
     25        * page/mac/EventHandlerMac.mm:
     26        (WebCore::EventHandler::keyEvent):
     27        (WebCore::EventHandler::mouseDown):
     28        * platform/qt/FrameQt.cpp:
     29        (WebCore::FrameQt::keyEvent):
     30
    1312006-12-02  Geoffrey Garen  <ggaren@apple.com>
    232
  • trunk/WebCore/bridge/mac/FrameMac.mm

    r17987 r18011  
    356356    Frame::setView(view);
    357357   
     358#ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION
    358359    // Only one form submission is allowed per view of a part.
    359360    // Since this part may be getting reused as a result of being
    360361    // pulled from the back/forward cache, reset this flag.
    361362    loader()->resetMultipleFormSubmissionProtection();
     363#endif
    362364}
    363365
  • trunk/WebCore/bridge/mac/WebCoreAXObject.mm

    r17958 r18011  
    886886        if (!actionElement)
    887887            return;
    888 
     888#ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION
    889889        if (Frame* f = actionElement->document()->frame())
    890890            f->loader()->resetMultipleFormSubmissionProtection();
    891 
     891#endif
    892892        actionElement->accessKeyAction(true);
    893893    }
  • trunk/WebCore/bridge/win/FrameWin.cpp

    r18000 r18011  
    104104    }
    105105
     106#ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION
    106107    if (!keyEvent.isKeyUp())
    107108        loader()->resetMultipleFormSubmissionProtection();
     109#endif
    108110
    109111    result = !EventTargetNodeCast(node)->dispatchKeyEvent(keyEvent);
  • trunk/WebCore/loader/FrameLoader.cpp

    r17976 r18011  
    14191419}
    14201420
     1421#ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION
    14211422void FrameLoader::didNotOpenURL(const KURL& URL)
    14221423{
     
    14291430    m_submittedFormURL = KURL();
    14301431}
     1432#endif
    14311433
    14321434void FrameLoader::setEncoding(const String& name, bool userChosen)
     
    21722174void FrameLoader::submitForm(const FrameLoadRequest& request, Event* event)
    21732175{
     2176#ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION
    21742177    // FIXME: We'd like to remove this altogether and fix the multiple form submission issue another way.
    21752178    // We do not want to submit more than one form from the same page,
     
    21882191        m_submittedFormURL = request.resourceRequest().url();
    21892192    }
     2193#endif
    21902194
    21912195    // FIXME: Why do we always pass true for userGesture?
  • trunk/WebCore/loader/FrameLoader.h

    r17945 r18011  
    420420        bool userGestureHint();
    421421
     422#ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION
    422423        void resetMultipleFormSubmissionProtection();
    423424        void didNotOpenURL(const KURL&);
     425#endif
    424426
    425427        void addData(const char* bytes, int length);
     
    637639        RefPtr<HTMLFormElement> m_formAboutToBeSubmitted;
    638640        HashMap<String, String> m_formValuesAboutToBeSubmitted;
     641#ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION
    639642        KURL m_submittedFormURL;
     643#endif
    640644   
    641645        Timer<FrameLoader> m_redirectionTimer;
  • trunk/WebCore/loader/mac/FrameLoaderMac.mm

    r17976 r18011  
    403403   
    404404    if (m_state == FrameStateProvisional) {
     405#ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION
    405406        NSURL *failedURL = [m_provisionalDocumentLoader->originalRequestCopy() URL];
    406407        didNotOpenURL(failedURL);
    407 
     408#endif
    408409        // We might have made a page cache item, but now we're bailing out due to an error before we ever
    409410        // transitioned to the new page (before WebFrameState == commit).  The goal here is to restore any state
  • trunk/WebCore/loader/qt/FrameLoaderQt.cpp

    r17766 r18011  
    7777void FrameLoader::submitForm(const FrameLoadRequest& frameLoadRequest, Event*)
    7878{
     79#ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION
    7980    // FIXME: We'd like to remove this altogether and fix the multiple form submission issue another way.
    8081    // We do not want to submit more than one form from the same page,
     
    9394        m_submittedFormURL = frameLoadRequest.resourceRequest().url();
    9495    }
     96#endif
    9597
    9698    RefPtr<FormData> formData = frameLoadRequest.resourceRequest().httpBody();
  • trunk/WebCore/page/Frame.cpp

    r17958 r18011  
    242242
    243243    d->m_view = view;
     244
     245#ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION
     246    // Only one form submission is allowed per view of a part.
     247    // Since this part may be getting reused as a result of being
     248    // pulled from the back/forward cache, reset this flag.
     249    loader()->resetMultipleFormSubmissionProtection();
     250#endif
    244251}
    245252
  • trunk/WebCore/page/mac/EventHandlerMac.mm

    r18007 r18011  
    307307            return false;
    308308    }
    309 
     309#ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION
    310310    if ([event type] == NSKeyDown)
    311311        m_frame->loader()->resetMultipleFormSubmissionProtection();
     312#endif
    312313
    313314    NSEvent *oldCurrentEvent = currentEvent;
     
    799800
    800801    BEGIN_BLOCK_OBJC_EXCEPTIONS;
    801 
     802#ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION
    802803    m_frame->loader()->resetMultipleFormSubmissionProtection();
    803 
     804#endif
    804805    m_mouseDownView = nil;
    805806    dragState().m_dragSrc = 0;
  • trunk/WebCore/platform/qt/FrameQt.cpp

    r17983 r18011  
    435435    }
    436436
     437#ifdef MULTIPLE_FORM_SUBMISSION_PROTECTION
    437438    if (!keyEvent.isKeyUp())
    438439        loader()->resetMultipleFormSubmissionProtection();
     440#endif
    439441
    440442    result = !EventTargetNodeCast(node)->dispatchKeyEvent(keyEvent);
Note: See TracChangeset for help on using the changeset viewer.