• bashi@chromium.org's avatar
    Let plugins participate in form submission · dcda5d98
    bashi@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=13061
    
    Source/WebCore:
    
    Implements HTMLObjectElement::appendFormData() so that object
    elements respond as form associated elements.
    
    Patch by Kenichi Ishibashi <bashi@chromium.org> on 2011-07-10
    Reviewed by Anders Carlsson.
    
    Test: plugins/form-value.html
    
    * html/HTMLObjectElement.cpp:
    (WebCore::HTMLObjectElement::appendFormData): Implemented.
    * plugins/PluginViewBase.h:
    (WebCore::PluginViewBase::getFormValue): Added.
    
    Source/WebKit/mac:
    
    Adds methods to get form value from NPAPI plugins.
    
    Patch by Kenichi Ishibashi <bashi@chromium.org> on 2011-07-10
    Reviewed by Anders Carlsson.
    
    * Plugins/Hosted/WebHostedNetscapePluginView.h:
    * Plugins/Hosted/WebHostedNetscapePluginView.mm:
    (-[WebHostedNetscapePluginView getFormValue:]): Added.
    * Plugins/WebBaseNetscapePluginView.h:
    * Plugins/WebBaseNetscapePluginView.mm:
    (-[WebBaseNetscapePluginView getFormValue:]): Added.
    * Plugins/WebNetscapePluginPackage.h:
    * Plugins/WebNetscapePluginPackage.mm:
    (-[WebNetscapePluginPackage browserFuncs]): Added.
    * Plugins/WebNetscapePluginView.h:
    * Plugins/WebNetscapePluginView.mm:
    (-[WebNetscapePluginView getFormValue:]): Added.
    * WebCoreSupport/WebFrameLoaderClient.mm:
    (NetscapePluginWidget::getFormValue): Added.
    
    Tools:
    
    Adds NPPVformValue support to the testing plugin.
    
    Patch by Kenichi Ishibashi <bashi@chromium.org> on 2011-07-10
    Reviewed by Anders Carlsson.
    
    * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: Added FormValue.cpp
    * DumpRenderTree/TestNetScapePlugIn/Tests/FormValue.cpp: Added.
    (FormValue::FormValue): Ditto.
    (FormValue::NPP_GetValue): Ditto.
    
    LayoutTests:
    
    Adds a test that checks getting form value from plugins.
    This test will pass only mac Leopard for now.
    
    Patch by Kenichi Ishibashi <bashi@chromium.org> on 2011-07-10
    Reviewed by Anders Carlsson.
    
    * platform/chromium/test_expectations.txt: Added an entry for plugins/form-value.html.
    * platform/gtk/Skipped: Ditto.
    * platform/mac-snowleopard/Skipped: Ditto.
    * platform/qt/Skipped: Ditto.
    * platform/win/Skipped: Ditto.
    * platform/wk2/Skipped: Ditto.
    * plugins/form-value-expected.txt: Added.
    * plugins/form-value.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90707 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    dcda5d98