Title: [106856] trunk/Source/WebKit/chromium
- Revision
- 106856
- Author
- [email protected]
- Date
- 2012-02-06 14:54:41 -0800 (Mon, 06 Feb 2012)
Log Message
[filesystem/Chromium] crackFileSystemURL needs to use innerURL
https://bugs.webkit.org/show_bug.cgi?id=77881
Reviewed by Adam Barth.
* src/AsyncFileSystemChromium.cpp:
(WebCore::AsyncFileSystem::crackFileSystemURL):
Add the new code path, taken only if innerURL is present.
Modified Paths
Diff
Modified: trunk/Source/WebKit/chromium/ChangeLog (106855 => 106856)
--- trunk/Source/WebKit/chromium/ChangeLog 2012-02-06 22:39:36 UTC (rev 106855)
+++ trunk/Source/WebKit/chromium/ChangeLog 2012-02-06 22:54:41 UTC (rev 106856)
@@ -1,3 +1,14 @@
+2012-02-06 Eric Uhrhane <[email protected]>
+
+ [filesystem/Chromium] crackFileSystemURL needs to use innerURL
+ https://bugs.webkit.org/show_bug.cgi?id=77881
+
+ Reviewed by Adam Barth.
+
+ * src/AsyncFileSystemChromium.cpp:
+ (WebCore::AsyncFileSystem::crackFileSystemURL):
+ Add the new code path, taken only if innerURL is present.
+
2012-02-03 James Robinson <[email protected]>
[chromium] Support detaching TextureManager from ManagedTexture
Modified: trunk/Source/WebKit/chromium/src/AsyncFileSystemChromium.cpp (106855 => 106856)
--- trunk/Source/WebKit/chromium/src/AsyncFileSystemChromium.cpp 2012-02-06 22:39:36 UTC (rev 106855)
+++ trunk/Source/WebKit/chromium/src/AsyncFileSystemChromium.cpp 2012-02-06 22:54:41 UTC (rev 106856)
@@ -63,28 +63,44 @@
if (!url.protocolIs("filesystem"))
return false;
- KURL originURL(ParsedURLString, url.path());
- String path = decodeURLEscapeSequences(originURL.path());
- if (path.isEmpty() || path[0] != '/')
- return false;
- path = path.substring(1);
+ if (url.innerURL()) {
+ String typeString = url.innerURL()->path().substring(1);
+ if (typeString == temporaryPathPrefix)
+ type = Temporary;
+ else if (typeString == persistentPathPrefix)
+ type = Persistent;
+ else if (typeString == externalPathPrefix)
+ type = externalType;
+ else
+ return false;
- if (path.startsWith(temporaryPathPrefix)) {
- type = Temporary;
- path = path.substring(temporaryPathPrefixLength);
- } else if (path.startsWith(persistentPathPrefix)) {
- type = Persistent;
- path = path.substring(persistentPathPrefixLength);
- } else if (path.startsWith(externalPathPrefix)) {
- type = externalType;
- path = path.substring(externalPathPrefixLength);
- } else
- return false;
+ filePath = decodeURLEscapeSequences(url.path());
+ } else {
+ // FIXME: Remove this clause once http://codereview.chromium.org/7811006
+ // lands, which makes this dead code.
+ KURL originURL(ParsedURLString, url.path());
+ String path = decodeURLEscapeSequences(originURL.path());
+ if (path.isEmpty() || path[0] != '/')
+ return false;
+ path = path.substring(1);
- if (path.isEmpty() || path[0] != '/')
- return false;
+ if (path.startsWith(temporaryPathPrefix)) {
+ type = Temporary;
+ path = path.substring(temporaryPathPrefixLength);
+ } else if (path.startsWith(persistentPathPrefix)) {
+ type = Persistent;
+ path = path.substring(persistentPathPrefixLength);
+ } else if (path.startsWith(externalPathPrefix)) {
+ type = externalType;
+ path = path.substring(externalPathPrefixLength);
+ } else
+ return false;
- filePath.swap(path);
+ if (path.isEmpty() || path[0] != '/')
+ return false;
+
+ filePath.swap(path);
+ }
return true;
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes