Changeset 45999 in webkit
- Timestamp:
- Jul 16, 2009 5:16:21 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r45989 r45999 1 2009-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 1 10 2009-07-16 Shinichiro Hamaji <hamaji@chromium.org> 2 11 -
trunk/WebCore/ChangeLog
r45997 r45999 1 2009-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 1 10 2009-07-16 Drew Wilson <atwilson@google.com> 2 11 -
trunk/WebCore/html/HTMLInputElement.cpp
r45987 r45999 839 839 840 840 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; 857 844 858 845 // If no filename at all is entered, return successful but empty. 859 846 // Null would be more logical, but Netscape posts an empty file. Argh. 847 unsigned numFiles = m_fileList->length(); 860 848 if (!numFiles) { 861 849 encoding.appendFile(name(), File::create(""));
Note: See TracChangeset
for help on using the changeset viewer.