Changeset 58276 in webkit
- Timestamp:
- Apr 26, 2010 6:32:44 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r58273 r58276 1 2010-04-26 Daniel Cheng <dcheng@chromium.org> 2 3 Reviewed by Jian Li. 4 5 [Chromium] Don't make file paths available in text/uri-list when dragging files. 6 https://bugs.webkit.org/show_bug.cgi?id=25882 7 8 Test will be checked in with WebCore/platform/mac fix. 9 10 * platform/chromium/ClipboardChromium.cpp: 11 (WebCore::ClipboardChromium::getData): 12 (WebCore::ClipboardChromium::types): 13 1 14 2010-04-26 Maciej Stachowiak <mjs@apple.com> 2 15 -
trunk/WebCore/platform/chromium/ClipboardChromium.cpp
r57464 r58276 174 174 text.append(uri); 175 175 } 176 // Also create file:// URLs out of the entries in the file list.177 for (size_t i = 0; i < m_dataObject->filenames.size(); ++i) {178 String fileURL = ChromiumBridge::filePathToURL(m_dataObject->filenames[i]);179 ASSERT(!fileURL.isEmpty());180 if (!text.isEmpty())181 text.append(textMIMETypeLineSeparator);182 text.append(fileURL);183 }184 176 success = !text.isEmpty(); 185 177 return text; … … 192 184 success = true; 193 185 return m_dataObject->url.string(); 194 }195 // Otherwise check if we have a file that we could convert to a file:// URL.196 if (!m_dataObject->filenames.isEmpty()) {197 success = true;198 return ChromiumBridge::filePathToURL(m_dataObject->filenames[0]);199 186 } 200 187 return String(); … … 327 314 return results; 328 315 329 if (!m_dataObject->filenames.isEmpty()) { 330 results.add("text/uri-list"); 316 if (!m_dataObject->filenames.isEmpty()) 331 317 results.add("Files"); 332 }333 318 334 319 if (m_dataObject->url.isValid()) {
Note: See TracChangeset
for help on using the changeset viewer.