summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/fileapi/EntryBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/fileapi/EntryBase.cpp')
-rw-r--r--Source/WebCore/fileapi/EntryBase.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/WebCore/fileapi/EntryBase.cpp b/Source/WebCore/fileapi/EntryBase.cpp
index ad3bec0..e10964a 100644
--- a/Source/WebCore/fileapi/EntryBase.cpp
+++ b/Source/WebCore/fileapi/EntryBase.cpp
@@ -54,11 +54,15 @@ EntryBase::~EntryBase()
{
}
-String EntryBase::toURI()
+String EntryBase::toURL()
{
+ String originString = m_fileSystem->securityOrigin()->toString();
+ ASSERT(!originString.isEmpty());
+ if (originString == "null")
+ return String();
StringBuilder result;
result.append("filesystem:");
- result.append(m_fileSystem->securityOrigin()->toString());
+ result.append(originString);
result.append("/");
result.append(m_fileSystem->asyncFileSystem()->type() == AsyncFileSystem::Temporary ? DOMFileSystemBase::kTemporaryPathPrefix : DOMFileSystemBase::kPersistentPathPrefix);
result.append(m_fullPath);