Changeset 86291 in webkit


Ignore:
Timestamp:
May 11, 2011 5:29:35 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-11 Zelidrag Hornung <zelidrag@chromium.org>

Reviewed by David Levin.

Prevented DOMFileSystemBase from imposing file naming restrictions on
external file systems.

https://bugs.webkit.org/show_bug.cgi?id=60583

There are no new tests for this change since it requires the presence
of external file system provider which is specific to the platform host
process. Chromium implementation will test this within its extension API
test suite.

  • fileapi/DOMFileSystemBase.cpp: (WebCore::pathToAbsolutePath): (WebCore::DOMFileSystemBase::getFile): (WebCore::DOMFileSystemBase::getDirectory):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r86290 r86291  
     12011-05-11  Zelidrag Hornung  <zelidrag@chromium.org>
     2
     3        Reviewed by David Levin.
     4
     5        Prevented DOMFileSystemBase from imposing file naming restrictions on
     6        external file systems.
     7
     8        https://bugs.webkit.org/show_bug.cgi?id=60583
     9
     10        There are no new tests for this change since it requires the presence
     11        of external file system provider which is specific to the platform host
     12        process. Chromium implementation will test this within its extension API
     13        test suite.
     14
     15        * fileapi/DOMFileSystemBase.cpp:
     16        (WebCore::pathToAbsolutePath):
     17        (WebCore::DOMFileSystemBase::getFile):
     18        (WebCore::DOMFileSystemBase::getDirectory):
     19
    1202011-05-11  Antoine Labour  <piman@chromium.org>
    221
  • trunk/Source/WebCore/fileapi/DOMFileSystemBase.cpp

    r84224 r86291  
    138138}
    139139
    140 static bool pathToAbsolutePath(const EntryBase* base, String path, String& absolutePath)
     140static bool pathToAbsolutePath(AsyncFileSystem::Type type, const EntryBase* base, String path, String& absolutePath)
    141141{
    142142    ASSERT(base);
     
    146146    absolutePath = DOMFilePath::removeExtraParentReferences(path);
    147147
    148     if (!DOMFilePath::isValidPath(absolutePath))
     148    if ((type == AsyncFileSystem::Temporary || type == AsyncFileSystem::Persistent) && !DOMFilePath::isValidPath(absolutePath))
    149149        return false;
    150150    return true;
     
    209209{
    210210    String absolutePath;
    211     if (!pathToAbsolutePath(base, path, absolutePath))
     211    if (!pathToAbsolutePath(m_asyncFileSystem->type(), base, path, absolutePath))
    212212        return false;
    213213
     
    224224{
    225225    String absolutePath;
    226     if (!pathToAbsolutePath(base, path, absolutePath))
     226    if (!pathToAbsolutePath(m_asyncFileSystem->type(), base, path, absolutePath))
    227227        return false;
    228228
Note: See TracChangeset for help on using the changeset viewer.