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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>7765</bug_id>
          
          <creation_ts>2009-09-29 16:11:28 +0000</creation_ts>
          <short_desc>Maybe progress should be named fetchcachefile or some such</short_desc>
          <delta_ts>2010-10-04 14:33:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#updating-an-application-cache</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NE</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>LC</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>olivier.gendrin</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27873</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2009-09-29 16:11:28 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#updating-an-application-cache

Comment:
Maybe progress should be named fetchcachefile or some such instead as that seems much more closely to what is used for. However, I don&apos;t quite understand why you would not want more detailed progress events here so you can show a progress bar to the user while updating the application.

Posted from: 213.236.208.22</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27913</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-09-30 10:08:40 +0000</bug_when>
    <thetext>Unless you do one progress bar per file (unlikely, given that each file will typically only take 250ms), you don&apos;t know how many bytes the total will be. So the only way to do a progress bar that I can see is to use the number of files as the total. Which is what the spec does.

Not sure why we&apos;d use another event name though; can you elaborate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27945</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2009-09-30 15:17:41 +0000</bug_when>
    <thetext>Updating a progress bar every 250ms will give you bad UI. You might as well not have it then I think. From experience with progress events for XMLHttpRequest you want something about every 50ms to get a smooth download bar.

The reason I suggested another name is that progress is very generic and we might want to use it for something else in the future. The function here is also very specific so it seems better to keep the name consistent with that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27964</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Gendrin">olivier.gendrin</who>
    <bug_when>2009-10-01 11:27:05 +0000</bug_when>
    <thetext>Anne, you misread what Ian wrote.

Anyway, the progress bar update period should be on behalf of the UA according to the capacity of the computer running it, every 50ms could harm the user experience a little bit more on busy computer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27965</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2009-10-01 11:33:22 +0000</bug_when>
    <thetext>I don&apos;t think I did.

UAs are of course always allowed to do things differently in face of limited resources though dispatching an event every 50ms is really not that bad. Consider all the animation effects people implement with time outs that run every 15ms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28447</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-10-18 10:38:49 +0000</bug_when>
    <thetext>We don&apos;t have the data, we can&apos;t just artificially make up the data. So I don&apos;t see how to make it any better. _If_ someone wants to make a progress bar of any kind, they&apos;ll need the data. That&apos;s the only use case I had in mind when making this event available. So it makes sense to call it &apos;progress&apos; IMHO.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>