Changeset 45999 in webkit


Ignore:
Timestamp:
Jul 16, 2009 5:16:21 PM (15 years ago)
Author:
abarth@webkit.org
Message:

WebCore:

2009-07-16 Adam Barth <abarth@webkit.org>

Unreviewed.

Revert 45987. Tests did not pass on Windows.

  • html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::appendFormData):

LayoutTests:

2009-07-16 Adam Barth <abarth@webkit.org>

Unreviewed.

Revert 45987. Tests did not pass on Windows.

  • fast/forms/get-file-upload-expected.txt: Removed.
  • fast/forms/get-file-upload.html: Removed.
Location:
trunk
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r45989 r45999  
     12009-07-16  Adam Barth  <abarth@webkit.org>
     2
     3        Unreviewed.
     4
     5        Revert 45987.  Tests did not pass on Windows.
     6
     7        * fast/forms/get-file-upload-expected.txt: Removed.
     8        * fast/forms/get-file-upload.html: Removed.
     9
    1102009-07-16  Shinichiro Hamaji  <hamaji@chromium.org>
    211
  • trunk/WebCore/ChangeLog

    r45997 r45999  
     12009-07-16  Adam Barth  <abarth@webkit.org>
     2
     3        Unreviewed.
     4
     5        Revert 45987.  Tests did not pass on Windows.
     6
     7        * html/HTMLInputElement.cpp:
     8        (WebCore::HTMLInputElement::appendFormData):
     9
    1102009-07-16  Drew Wilson  <atwilson@google.com>
    211
  • trunk/WebCore/html/HTMLInputElement.cpp

    r45987 r45999  
    839839
    840840        case FILE: {
    841             unsigned numFiles = m_fileList->length();
    842             if (!multipart) {
    843                 // Send only the basenames.
    844                 // 4.10.16.4 and 4.10.16.6 sections in HTML5.
    845 
    846                 // Unlike the multipart case, we have no special
    847                 // handling for the empty fileList because Netscape
    848                 // doesn't support for non-multipart submission of
    849                 // file inputs, and Firefox doesn't add "name=" query
    850                 // parameter.
    851 
    852                 for (unsigned i = 0; i < numFiles; ++i) {
    853                     encoding.appendData(name(), m_fileList->item(i)->fileName());
    854                 }
    855                 return true;
    856             }
     841            // Can't submit file on GET.
     842            if (!multipart)
     843                return false;
    857844
    858845            // If no filename at all is entered, return successful but empty.
    859846            // Null would be more logical, but Netscape posts an empty file. Argh.
     847            unsigned numFiles = m_fileList->length();
    860848            if (!numFiles) {
    861849                encoding.appendFile(name(), File::create(""));
Note: See TracChangeset for help on using the changeset viewer.