Changeset 46006 in webkit
- Timestamp:
- Jul 16, 2009 9:36:24 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r46002 r46006 1 2009-07-16 Kent Tamura <tkent@chromium.org> 2 3 Reviewed by Eric Seidel and Adam Barth. 4 5 A test for for non-multipart file upload form submission. 6 This test is disabled for non-Mac platforms because of beginDragWithFiles(). 7 <https://bugs.webkit.org/show_bug.cgi?id=26505> 8 9 * fast/forms/get-file-upload-expected.txt: Added. 10 * fast/forms/get-file-upload.html: Added. 11 * platform/gtk/Skipped: 12 * platform/qt/Skipped: 13 * platform/win/Skipped: 14 1 15 2009-07-16 Dan Bernstein <mitz@apple.com> 2 16 -
trunk/LayoutTests/platform/gtk/Skipped
r45983 r46006 1739 1739 fast/forms/focus-selection-textarea.html 1740 1740 fast/forms/form-and-frame-interaction-retains-values.html 1741 fast/forms/get-file-upload.html 1741 1742 fast/forms/input-radio-checked-tab.html 1742 1743 fast/forms/input-select-on-click.html -
trunk/LayoutTests/platform/qt/Skipped
r45983 r46006 19 19 fast/events/drag-to-navigate.html 20 20 fast/events/prevent-drag-to-navigate.html 21 fast/forms/get-file-upload.html 21 22 http/tests/security/clipboard/clipboard-file-access.html 22 23 -
trunk/LayoutTests/platform/win/Skipped
r45983 r46006 186 186 fast/events/drag-to-navigate.html 187 187 fast/events/prevent-drag-to-navigate.html 188 fast/forms/get-file-upload.html 188 189 http/tests/security/clipboard/clipboard-file-access.html 189 190 -
trunk/WebCore/ChangeLog
r46005 r46006 1 2009-07-16 Kent Tamura <tkent@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 Sends the basename of a selected file for non-multipart form submission. 6 <https://bugs.webkit.org/show_bug.cgi?id=26505> 7 8 Test: fast/forms/get-file-upload.html 9 10 * html/HTMLInputElement.cpp: 11 (WebCore::HTMLInputElement::appendFormData): 12 1 13 2009-07-16 Adam Barth <abarth@webkit.org> 2 14 -
trunk/WebCore/html/HTMLInputElement.cpp
r45999 r46006 839 839 840 840 case FILE: { 841 // Can't submit file on GET. 842 if (!multipart) 843 return false; 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 } 844 857 845 858 // If no filename at all is entered, return successful but empty. 846 859 // Null would be more logical, but Netscape posts an empty file. Argh. 847 unsigned numFiles = m_fileList->length();848 860 if (!numFiles) { 849 861 encoding.appendFile(name(), File::create(""));
Note: See TracChangeset
for help on using the changeset viewer.