RESOLVED FIXED93706
Support creating File object from FileSystem URL for files in FileSystem API
https://bugs.webkit.org/show_bug.cgi?id=93706
Summary Support creating File object from FileSystem URL for files in FileSystem API
Kinuko Yasuda
Reported 2012-08-10 03:09:21 PDT
Support creating File object from FileSystem URL for files in FileSystem API. Current File code assumes the existence of local file (i.e. needs a platform local file path to work appropriately) but for FileSystem files it may not be always the case. Some implementation may want to use in-memory filesystem to realize sandboxed filesystem, or the filesystem may exist in a remote server so that there may not be the local platform file. We should support File object creation not only from file path but from FileSystem URL, and should make File object keep the information, so that the platform-specific code can handle file requests more appropriately.
Attachments
wip (33.18 KB, patch)
2012-08-10 03:26 PDT, Kinuko Yasuda
no flags
Patch (33.68 KB, patch)
2012-08-10 06:03 PDT, Kinuko Yasuda
no flags
Patch (36.96 KB, patch)
2012-08-10 06:31 PDT, Kinuko Yasuda
fishd: review+
fishd: commit-queue-
Kinuko Yasuda
Comment 1 2012-08-10 03:26:12 PDT
WebKit Review Bot
Comment 2 2012-08-10 03:29:31 PDT
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Early Warning System Bot
Comment 3 2012-08-10 03:40:15 PDT
Early Warning System Bot
Comment 4 2012-08-10 03:48:21 PDT
Build Bot
Comment 5 2012-08-10 03:49:06 PDT
Gyuyoung Kim
Comment 6 2012-08-10 03:57:26 PDT
Kinuko Yasuda
Comment 7 2012-08-10 06:03:32 PDT
Build Bot
Comment 8 2012-08-10 06:25:35 PDT
Kinuko Yasuda
Comment 9 2012-08-10 06:31:51 PDT
Darin Fisher (:fishd, Google)
Comment 10 2012-08-10 09:43:40 PDT
Comment on attachment 157729 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=157729&action=review > Source/Platform/chromium/public/WebBlobData.h:53 > + WebURL url; // For Blob or URL. nit: "For TypeBlob or TypeURL." just to make it really clear. > Source/Platform/chromium/public/WebHTTPBody.h:57 > + WebURL url; // For Blob or URL type. nit: "For TypeBlob or TypeURL." just to make it really clear. > Source/WebCore/platform/chromium/support/WebHTTPBody.cpp:157 > + ASSERT(KURL(blobURL).protocol() == "blob"); nit: use KURL's protocolIs method.
Kinuko Yasuda
Comment 11 2012-08-12 23:21:57 PDT
Note You need to log in before you can comment on or make changes to this bug.