Changeset 86291 in webkit
- Timestamp:
- May 11, 2011 5:29:35 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r86290 r86291 1 2011-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 1 20 2011-05-11 Antoine Labour <piman@chromium.org> 2 21 -
trunk/Source/WebCore/fileapi/DOMFileSystemBase.cpp
r84224 r86291 138 138 } 139 139 140 static bool pathToAbsolutePath( const EntryBase* base, String path, String& absolutePath)140 static bool pathToAbsolutePath(AsyncFileSystem::Type type, const EntryBase* base, String path, String& absolutePath) 141 141 { 142 142 ASSERT(base); … … 146 146 absolutePath = DOMFilePath::removeExtraParentReferences(path); 147 147 148 if ( !DOMFilePath::isValidPath(absolutePath))148 if ((type == AsyncFileSystem::Temporary || type == AsyncFileSystem::Persistent) && !DOMFilePath::isValidPath(absolutePath)) 149 149 return false; 150 150 return true; … … 209 209 { 210 210 String absolutePath; 211 if (!pathToAbsolutePath( base, path, absolutePath))211 if (!pathToAbsolutePath(m_asyncFileSystem->type(), base, path, absolutePath)) 212 212 return false; 213 213 … … 224 224 { 225 225 String absolutePath; 226 if (!pathToAbsolutePath( base, path, absolutePath))226 if (!pathToAbsolutePath(m_asyncFileSystem->type(), base, path, absolutePath)) 227 227 return false; 228 228
Note: See TracChangeset
for help on using the changeset viewer.