<?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>47454</bug_id>
          
          <creation_ts>2010-10-09 10:53:40 -0700</creation_ts>
          <short_desc>FileWriter sends write event instead of progress event</short_desc>
          <delta_ts>2010-10-09 19:16:16 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>44358</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric U.">ericu</reporter>
          <assigned_to name="Eric U.">ericu</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>kinuko</cc>
    
    <cc>kling</cc>
    
    <cc>michaeln</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>292137</commentid>
    <comment_count>0</comment_count>
    <who name="Eric U.">ericu</who>
    <bug_when>2010-10-09 10:53:40 -0700</bug_when>
    <thetext>The FileWriter is currently sending the write event where it should be sending a progress event.
Write happens only at the end of a successful truncate or write, whereas progress happens throughout an ongoing write.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>292233</commentid>
    <comment_count>1</comment_count>
      <attachid>70381</attachid>
    <who name="Eric U.">ericu</who>
    <bug_when>2010-10-09 17:21:45 -0700</bug_when>
    <thetext>Created attachment 70381
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>292236</commentid>
    <comment_count>2</comment_count>
      <attachid>70381</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-10-09 18:55:51 -0700</bug_when>
    <thetext>Comment on attachment 70381
Patch

According to the spec, readyState should be DONE when the &quot;write&quot; event fires:
http://www.w3.org/TR/file-writer-api/#widl-FileWriter-write  (steps 6, 7 and 8.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>292237</commentid>
    <comment_count>3</comment_count>
      <attachid>70381</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-10-09 18:59:18 -0700</bug_when>
    <thetext>Comment on attachment 70381
Patch

D&apos;oh, that&apos;s my bad. I was looking at an outdated version of the spec.

Here&apos;s the relevant one:
http://dev.w3.org/2009/dap/file-system/file-writer.html#widl-FileWriter-write

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>292238</commentid>
    <comment_count>4</comment_count>
      <attachid>70381</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-10-09 19:16:11 -0700</bug_when>
    <thetext>Comment on attachment 70381
Patch

Clearing flags on attachment: 70381

Committed r69463: &lt;http://trac.webkit.org/changeset/69463&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>292239</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-10-09 19:16:16 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>70381</attachid>
            <date>2010-10-09 17:21:45 -0700</date>
            <delta_ts>2010-10-09 19:16:11 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-47454-20101009172144.patch</filename>
            <type>text/plain</type>
            <size>1307</size>
            <attacher name="Eric U.">ericu</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT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XZpc2lvbiA2OTM3MSkKKysrIFdlYkNvcmUvZmlsZWFwaS9GaWxlV3JpdGVyLmNwcAkod29ya2lu
ZyBjb3B5KQpAQCAtMTY3LDggKzE2Nyw5IEBAIHZvaWQgRmlsZVdyaXRlcjo6ZGlkV3JpdGUobG9u
ZyBsb25nIGJ5dGUKICAgICBtX3Bvc2l0aW9uICs9IGJ5dGVzOwogICAgIGlmIChtX3Bvc2l0aW9u
ID4gbV9sZW5ndGgpCiAgICAgICAgIG1fbGVuZ3RoID0gbV9wb3NpdGlvbjsKLSAgICBmaXJlRXZl
bnQoZXZlbnROYW1lcygpLndyaXRlRXZlbnQpOworICAgIGZpcmVFdmVudChldmVudE5hbWVzKCku
cHJvZ3Jlc3NFdmVudCk7CiAgICAgaWYgKGNvbXBsZXRlKSB7CisgICAgICAgIGZpcmVFdmVudChl
dmVudE5hbWVzKCkud3JpdGVFdmVudCk7CiAgICAgICAgIG1fcmVhZHlTdGF0ZSA9IERPTkU7CiAg
ICAgICAgIGZpcmVFdmVudChldmVudE5hbWVzKCkud3JpdGVlbmRFdmVudCk7CiAgICAgfQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>