Reviewed by Darin.
authorap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Jan 2008 17:34:41 +0000 (17:34 +0000)
committerap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Jan 2008 17:34:41 +0000 (17:34 +0000)
commitb88dc7f830ede90dd70f89ecd9ea011a90423f8b
treeeae13fc4c39ff6951a2012bc297d544939a0029c
parentb72e633c1fed6cbf1bddc61bcc02a829d04daf20
    Reviewed by Darin.

        http://bugs.webkit.org/show_bug.cgi?id=14555
        action=mailto + method=get - The generated mailto URI is incorrect and the hvalues are encoded twice

        http://bugs.webkit.org/show_bug.cgi?id=14774
        Submitted data only includes first input item

        Reworked encoding of mailto URLs to match other browsers.
        Moved most of related logic from FrameLoader::submitForm() to HTMLFormElement::submit().

        Tests: fast/forms/mailto/advanced-get.html
               fast/forms/mailto/advanced-put.html
               fast/forms/mailto/get-multiple-items-text-plain.html
               fast/forms/mailto/get-multiple-items-x-www-form-urlencoded.html
               fast/forms/mailto/get-multiple-items.html
               fast/forms/mailto/get-non-ascii.html
               fast/forms/mailto/get-non-ascii-text-plain.html
               fast/forms/mailto/get-overwrite-query.html
               fast/forms/mailto/post-append-query.html
               fast/forms/mailto/post-multiple-items-multipart-form-data.html
               fast/forms/mailto/post-multiple-items-text-plain.html
               fast/forms/mailto/post-multiple-items-x-www-form-urlencoded.html
               fast/forms/mailto/post-multiple-items.html

        * html/HTMLFormElement.cpp:
        (WebCore::HTMLFormElement::submit):
        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::submitForm):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29086 268f45cc-cd09-0410-ab3c-d52691b4dbfc
30 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/forms/mailto/advanced-get-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/mailto/advanced-get.html [new file with mode: 0644]
LayoutTests/fast/forms/mailto/advanced-put-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/mailto/advanced-put.html [new file with mode: 0644]
LayoutTests/fast/forms/mailto/get-multiple-items-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/mailto/get-multiple-items-text-plain-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/mailto/get-multiple-items-text-plain.html [new file with mode: 0644]
LayoutTests/fast/forms/mailto/get-multiple-items-x-www-form-urlencoded-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/mailto/get-multiple-items-x-www-form-urlencoded.html [new file with mode: 0644]
LayoutTests/fast/forms/mailto/get-multiple-items.html [new file with mode: 0644]
LayoutTests/fast/forms/mailto/get-non-ascii-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/mailto/get-non-ascii-text-plain-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/mailto/get-non-ascii-text-plain.html [new file with mode: 0644]
LayoutTests/fast/forms/mailto/get-non-ascii.html [new file with mode: 0644]
LayoutTests/fast/forms/mailto/get-overwrite-query-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/mailto/get-overwrite-query.html [new file with mode: 0644]
LayoutTests/fast/forms/mailto/post-append-query-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/mailto/post-append-query.html [new file with mode: 0644]
LayoutTests/fast/forms/mailto/post-multiple-items-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/mailto/post-multiple-items-multipart-form-data-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/mailto/post-multiple-items-multipart-form-data.html [new file with mode: 0644]
LayoutTests/fast/forms/mailto/post-multiple-items-text-plain-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/mailto/post-multiple-items-text-plain.html [new file with mode: 0644]
LayoutTests/fast/forms/mailto/post-multiple-items-x-www-form-urlencoded-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/mailto/post-multiple-items-x-www-form-urlencoded.html [new file with mode: 0644]
LayoutTests/fast/forms/mailto/post-multiple-items.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLFormElement.cpp
WebCore/loader/FrameLoader.cpp