Changeset 63914 in webkit
- Timestamp:
- Jul 22, 2010 2:26:55 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r63911 r63914 1 2010-07-22 John Gregg <johnnyg@google.com> 2 3 Reviewed by Kent Tamura. 4 5 [chromium] fast/forms/input-file-directory-upload.html fails on win after r63454 6 https://bugs.webkit.org/show_bug.cgi?id=42768 7 8 Normalize path separators for the script API by convering \'s to /'s. 9 10 Covered by input-file-directory-upload.html 11 12 * html/HTMLInputElement.cpp: 13 (WebCore::HTMLInputElement::setFileListFromRenderer): 14 1 15 2010-07-22 Dmitry Titov <dimich@chromium.org> 2 16 -
trunk/WebCore/html/HTMLInputElement.cpp
r63879 r63914 1997 1997 rootPath = directoryName(rootPath); 1998 1998 ASSERT(rootPath.length()); 1999 for (int i = 0; i < size; i++) 2000 m_fileList->append(File::create(paths[i].substring(1 + rootPath.length()), paths[i])); 1999 for (int i = 0; i < size; i++) { 2000 // Normalize backslashes to slashes before exposing the relative path to script. 2001 String relativePath = paths[i].substring(1 + rootPath.length()).replace('\\','/'); 2002 m_fileList->append(File::create(relativePath, paths[i])); 2003 } 2001 2004 } else { 2002 2005 for (int i = 0; i < size; i++)
Note: See TracChangeset
for help on using the changeset viewer.