Bug 41567
Summary: | Implement FileReaderSync | ||
---|---|---|---|
Product: | WebKit | Reporter: | David Sanders <shang.xiao.sanders> |
Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Enhancement | CC: | jianli, shang.xiao.sanders |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac (Intel) | ||
OS: | OS X 10.6 | ||
URL: | http://rapilabs.com/test_sync.html |
David Sanders
FileReaderSync is the synchronous counterpart of FileReader as defined in the HTML5 specification: http://www.w3.org/TR/FileAPI/#FileReaderSync.
Reading files synchronously would typically be done in a web worker so as not to freeze the application. This is especially useful with GWT applications to create a java.io.Reader implementation that reads blobs using the File API. This means that you can plug a blob reader into your favourite library that requires a Reader to run, eg: opencsv. This is currently only possible using Gears' Blob.getBytes() which is also synchronous.
An example page is setup at http://rapilabs.com/test_sync.html
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Jian Li
*** This bug has been marked as a duplicate of bug 44657 ***