Skip to content
  • aroben@apple.com's avatar
    Fix a MSVC warning in PluginViewWin · d54c7262
    aroben@apple.com authored
    WebCore:
    
            Fix a MSVC warning in PluginViewWin
    
            Reviewed by Anders Carlsson.
    
            Test: http/tests/plugins/post-url-file.html
    
            * plugins/win/PluginViewWin.cpp:
            (WebCore::PluginView::handlePostReadFile): Added a missing return
            statement.
    
    WebKitTools:
    
            Support for testing NPN_PostURL
    
            Reviewed by Anders Carlsson.
    
            * DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
            (toCString): Added this helper function.
            (testPostURLFile): Added. Writes the passed-in content to the
            passed-in file and calls NPN_PostURL with the passed-in URL and
            target.
            (pluginInvoke): Added a case for testPostURLFile.
            * DumpRenderTree/win/LayoutTestControllerWin.cpp:
            (followShortcuts): Changed to allow paths that don't yet exist.
    
    LayoutTests:
    
            Test that NPN_PostURL works correctly
    
            Reviewed by Anders Carlsson.
    
            * http/tests/plugins/post-url-file-expected.txt: Added.
            * http/tests/plugins/post-url-file.html: Added.
            * http/tests/plugins/resources/dump-post.pl: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33076 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    d54c7262