Changeset 63914 in webkit


Ignore:
Timestamp:
Jul 22, 2010 2:26:55 PM (14 years ago)
Author:
johnnyg@google.com
Message:

2010-07-22 John Gregg <johnnyg@google.com>

Reviewed by Kent Tamura.

[chromium] fast/forms/input-file-directory-upload.html fails on win after r63454
https://bugs.webkit.org/show_bug.cgi?id=42768

Normalize path separators for the script API by convering \'s to /'s.

Covered by input-file-directory-upload.html

  • html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::setFileListFromRenderer):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r63911 r63914  
     12010-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
    1152010-07-22  Dmitry Titov  <dimich@chromium.org>
    216
  • trunk/WebCore/html/HTMLInputElement.cpp

    r63879 r63914  
    19971997        rootPath = directoryName(rootPath);
    19981998        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        }
    20012004    } else {
    20022005        for (int i = 0; i < size; i++)
Note: See TracChangeset for help on using the changeset viewer.