<?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>24599</bug_id>
          
          <creation_ts>2014-02-10 14:42:54 +0000</creation_ts>
          <short_desc>Don&apos;t these task queues depend on the available APIs? E.g. I suppose for file APIs we&apos;ll have some kind of &quot;file read task source&quot; and maybe an &quot;IO task source&quot;.</short_desc>
          <delta_ts>2014-04-15 10:20:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#worker-event-loop</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</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>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100147</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-02-10 14:42:54 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html
Multipage: http://www.whatwg.org/C#worker-event-loop
Complete: http://www.whatwg.org/c#worker-event-loop
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
Don&apos;t these task queues depend on the available APIs? E.g. I suppose for file
APIs we&apos;ll have some kind of &quot;file read task source&quot; and maybe an &quot;IO task
source&quot;.

Posted from: 82.130.78.44 by annevk@annevk.nl
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:30.0) Gecko/20100101 Firefox/30.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100214</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-10 21:41:28 +0000</bug_when>
    <thetext>I don&apos;t understand what you are asking here. Can you elaborate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100274</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-02-11 13:34:46 +0000</bug_when>
    <thetext>The introductory text seems unnecessarily restrictive: &quot;This event loop has no associated browsing context, and its task queues only have events, callbacks, and networking activity as tasks.&quot; I suspect there may be many more kinds of tasks going forward.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100315</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-11 19:46:07 +0000</bug_when>
    <thetext>Like what kind of task?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100389</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-02-12 11:15:46 +0000</bug_when>
    <thetext>File read task. Disk IO task. See comment 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100411</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-12 17:24:44 +0000</bug_when>
    <thetext>Why would you queue a task to read a file or do disk I/O? That makes no sense. It&apos;d be done in the background, no? (Note that &quot;network activity&quot; tasks are really just callbacks, not network activity. A fetch for a file:// with disk I/O would queue these &quot;network activity&quot; callback tasks.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100416</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-02-12 17:42:27 +0000</bug_when>
    <thetext>Right, they would be callbacks that can be used by FileReader to read a blob. That would not go through fetch, but through &quot;blob read&quot; or some such.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100639</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-14 22:00:42 +0000</bug_when>
    <thetext>Right. So, a callback. Like the spec says: &quot;... only have events, callbacks, and networking activity as tasks&quot;. Network activity is only mentioned because of the weird way &quot;fetch&quot; works, but things like FileReader don&apos;t get used for anything but regular callbacks, so they don&apos;t need anything special mentioned here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101158</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-21 22:19:30 +0000</bug_when>
    <thetext>I don&apos;t know what to do to the spec to fix this. If there&apos;s specific specs that queue specific new kinds of tasks that aren&apos;t mentioned in the HTML spec, then please let me know. Otherwise, I guess this is WORKSFORME.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102450</commentid>
    <comment_count>9</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-03-17 14:20:31 +0000</bug_when>
    <thetext>That&apos;s not true. E.g. if you have async XMLHttpRequest that you feed a Blob, it will use the tasks queued by reading the Blob to send that data over the network. No callbacks involved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102487</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-03-17 19:35:51 +0000</bug_when>
    <thetext>Why would those use tasks at all?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102500</commentid>
    <comment_count>11</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-03-17 20:42:19 +0000</bug_when>
    <thetext>What&apos;s the alternative? Some kind of English prose that says you do a synchronous read in the background? I guess that could work too...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102597</commentid>
    <comment_count>12</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-03-18 18:36:48 +0000</bug_when>
    <thetext>If it&apos;s just happening in the background, who cares what the timing is. You only need to use tasks when it would otherwise expose author-visible races.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103836</commentid>
    <comment_count>13</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-04-14 21:44:29 +0000</bug_when>
    <thetext>Anne, I still don&apos;t really understand what you want me to do here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103868</commentid>
    <comment_count>14</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-04-15 10:20:45 +0000</bug_when>
    <thetext>I guess it&apos;s fine. The current sentence seems overly restrictive, but maybe network is indeed the only special case...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>