<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>41567</bug_id>
          
          <creation_ts>2010-07-03 03:27:45 -0700</creation_ts>
          <short_desc>Implement FileReaderSync</short_desc>
          <delta_ts>2011-06-14 10:57:21 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>44657</dup_id>
          
          <bug_file_loc>http://rapilabs.com/test_sync.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="David Sanders">shang.xiao.sanders</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jianli</cc>
    
    <cc>shang.xiao.sanders</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>246286</commentid>
    <comment_count>0</comment_count>
    <who name="David Sanders">shang.xiao.sanders</who>
    <bug_when>2010-07-03 03:27:45 -0700</bug_when>
    <thetext>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&apos; Blob.getBytes() which is also synchronous.

An example page is setup at http://rapilabs.com/test_sync.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>420574</commentid>
    <comment_count>1</comment_count>
    <who name="Jian Li">jianli</who>
    <bug_when>2011-06-14 10:57:21 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 44657 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>