Changeset 62228 in webkit
- Timestamp:
- Jun 30, 2010 11:07:30 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r62227 r62228 1 2010-06-30 Andreas Kling <andreas.kling@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Crash when uploading document to Google Docs 6 https://bugs.webkit.org/show_bug.cgi?id=40795 7 8 Fix bug where the local file wasn't opened (for POSTing) 9 if it were the first element in the form. 10 11 * platform/network/qt/QNetworkReplyHandler.cpp: 12 (WebCore::FormDataIODevice::FormDataIODevice): 13 (WebCore::FormDataIODevice::moveToNextElement): 14 (WebCore::FormDataIODevice::openFileForCurrentElement): 15 * platform/network/qt/QNetworkReplyHandler.h: 16 1 17 2010-06-30 Eric Seidel <eric@webkit.org> 2 18 -
trunk/WebCore/platform/network/qt/QNetworkReplyHandler.cpp
r61875 r62228 61 61 { 62 62 setOpenMode(FormDataIODevice::ReadOnly); 63 64 if (!m_formElements.isEmpty() && m_formElements[0].m_type == FormDataElement::encodedFile) 65 openFileForCurrentElement(); 63 66 } 64 67 … … 79 82 return; 80 83 84 openFileForCurrentElement(); 85 } 86 87 void FormDataIODevice::openFileForCurrentElement() 88 { 81 89 if (!m_currentFile) 82 90 m_currentFile = new QFile; -
trunk/WebCore/platform/network/qt/QNetworkReplyHandler.h
r61663 r62228 105 105 private: 106 106 void moveToNextElement(); 107 void openFileForCurrentElement(); 107 108 108 109 private:
Note: See TracChangeset
for help on using the changeset viewer.