Re: [whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2012-09-24 Thread Kinuko Yasuda
Thanks for the feedback. On Fri, Sep 14, 2012 at 6:58 AM, Ian Hickson i...@hixie.ch wrote: On Tue, 15 Nov 2011, Kinuko Yasuda wrote: Many sites have 'upload your files' feature, like for your photo images. HTML5 allows you to do this via input type=file multiple or drag-and-drop feature

Re: [whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2012-05-24 Thread Kinuko Yasuda
Apologies for my late response. On Tue, Apr 10, 2012 at 7:33 AM, Glenn Maynard gl...@zewt.org wrote: On Mon, Apr 9, 2012 at 3:35 AM, Kinuko Yasuda kin...@chromium.org wrote: I don't think we should do this. The change would be invasive and could delay firing a drop event indefinitely

Re: [whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2012-04-09 Thread Kinuko Yasuda
uOn Fri, Apr 6, 2012 at 10:37 PM, Glenn Maynard gl...@zewt.org wrote: On Thu, Apr 5, 2012 at 11:42 PM, Kinuko Yasuda kin...@chromium.orgwrote: Does this actually need to be async? The only information you need to create the Entry are the filename and the file type (file or directory), which

Re: [whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2012-04-05 Thread Kinuko Yasuda
On Fri, Apr 6, 2012 at 12:32 AM, Eric U er...@google.com wrote: On Wed, Apr 4, 2012 at 9:36 PM, Kinuko Yasuda kin...@chromium.org wrote: A follow up about this proposal: Based on the feedbacks we got on this list we've implemented the following API to do experiments in Chrome

Re: [whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2012-04-05 Thread Kinuko Yasuda
On Fri, Apr 6, 2012 at 12:52 PM, Glenn Maynard gl...@zewt.org wrote: On Wed, Apr 4, 2012 at 11:36 PM, Kinuko Yasuda kin...@chromium.orgwrote: A follow up about this proposal: Based on the feedbacks we got on this list we've implemented the following API to do experiments in Chrome

Re: [whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2012-04-04 Thread Kinuko Yasuda
at 1:36 AM, Kinuko Yasuda kin...@chromium.orgwrote: I would say the approach has a bloating per-page bookkeeping problem but not a 'leak'. It's a reference leak: an object which remains referenced after it's no longer needed. I'm not aware of anything standardized in the platform

Re: [whatwg] Using requestFileSystem to setup mounts

2011-11-22 Thread Kinuko Yasuda
On Tue, Nov 22, 2011 at 7:30 AM, Glenn Maynard gl...@zewt.org wrote: On Mon, Nov 21, 2011 at 4:33 PM, Charles Pritchard ch...@jumis.com wrote: Multiple directories still have a shared file system root. Their relative paths are exposed in webkitdirectory files already. The benefit is neutered

Re: [whatwg] Using requestFileSystem to setup mounts

2011-11-21 Thread Kinuko Yasuda
Hi, thanks for your comment! On Sun, Nov 20, 2011 at 5:54 AM, Charles Pritchard ch...@jumis.com wrote: Kinuko Yasuda, I saw your post to whatwg regarding drag-and-drop directory mounts. I'm sure you've seen the various concerns people have with the proposal.. Like others, I'm also concerned

Re: [whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2011-11-17 Thread Kinuko Yasuda
On Thu, Nov 17, 2011 at 3:21 AM, Glenn Maynard gl...@zewt.org wrote: I don't think it's possible to do this correctly, because URLs created with toURL have no equivalent to revokeObjectURL.  A long-running page has no way to avoid leaking these references until the page exits.  Adding a revoke

Re: [whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2011-11-17 Thread Kinuko Yasuda
(resending with re-format) On Thu, Nov 17, 2011 at 3:21 AM, Glenn Maynard gl...@zewt.org wrote: As for the entry URLs I'm planning to make the URLs to the dropped entries and the filesystem namespace (that only contains the dropped files) expire when the page goes away, hoping this would largely

Re: [whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2011-11-17 Thread Kinuko Yasuda
On Fri, Nov 18, 2011 at 3:18 AM, Jonas Sicking jo...@sicking.cc wrote: On Wed, Nov 16, 2011 at 7:09 AM, Kinuko Yasuda kin...@chromium.org wrote: On Wed, Nov 16, 2011 at 5:42 PM, Jonas Sicking jo...@sicking.cc wrote: On Tue, Nov 15, 2011 at 3:02 PM, Glenn Maynard gl...@zewt.org wrote: On Tue

Re: [whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2011-11-17 Thread Kinuko Yasuda
On Fri, Nov 18, 2011 at 3:55 AM, Glenn Maynard gl...@zewt.org wrote: On Thu, Nov 17, 2011 at 1:00 PM, Kinuko Yasuda kin...@chromium.org wrote: If we apply the current URL model to non-sandboxed cases, passing URLs wouldn't imply anything about the lifetime (of the data or of access rights

Re: [whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2011-11-16 Thread Kinuko Yasuda
On Wed, Nov 16, 2011 at 2:16 PM, Glenn Maynard gl...@zewt.org wrote: On Tue, Nov 15, 2011 at 10:58 PM, Kinuko Yasuda kin...@chromium.org wrote: Good point, we could do this synchronously in workers! I think we already have one way to convert Entry to EntrySync: we can get a URL from Entry

Re: [whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2011-11-16 Thread Kinuko Yasuda
On Wed, Nov 16, 2011 at 5:42 PM, Jonas Sicking jo...@sicking.cc wrote: On Tue, Nov 15, 2011 at 3:02 PM, Glenn Maynard gl...@zewt.org wrote: On Tue, Nov 15, 2011 at 5:21 PM, Jonas Sicking jo...@sicking.cc wrote: Adding FileEntry/DirectoryEntry seems confusing since those are generally writable

[whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2011-11-15 Thread Kinuko Yasuda
Hi, We'd like to propose (and experiment in Webkit/chromium) exposing dropped files/folders as {File,Directory}Entry defined in FileSystem API [1] for better folders/files drag-and-drop support. [1] File API: Directories and System http://www.w3.org/TR/file-system-api/ Usage scenario:   Many

Re: [whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2011-11-15 Thread Kinuko Yasuda
Thanks for your comments, On Wed, Nov 16, 2011 at 8:02 AM, Glenn Maynard gl...@zewt.org wrote: On Tue, Nov 15, 2011 at 5:21 PM, Jonas Sicking jo...@sicking.cc wrote: Adding FileEntry/DirectoryEntry seems confusing since those are generally writable in the FileSystem API spec, right?

Re: [whatwg] Drag-and-drop folders/files support with directory structure using DirectoryEntry

2011-11-15 Thread Kinuko Yasuda
On Wed, Nov 16, 2011 at 11:06 AM, Glenn Maynard gl...@zewt.org wrote: On Tue, Nov 15, 2011 at 8:38 PM, Kinuko Yasuda kin...@chromium.org wrote: The async nature of DirectoryEntry makes the code longer, but webapps can work on the files incrementally and can show progress UI while enumerating