<?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>20041</bug_id>
          
          <creation_ts>2012-11-22 10:58:51 +0000</creation_ts>
          <short_desc>Please be explicit about the different event loops.</short_desc>
          <delta_ts>2013-04-12 22:33:50 +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>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-workerglobalscope-common-interface</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>ian</cc>
    
    <cc>mike</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78644</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-11-22 10:58:51 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html
Multipage: http://www.whatwg.org/C#the-workerglobalscope-common-interface
Complete: http://www.whatwg.org/c#the-workerglobalscope-common-interface

Comment:
Please be explicit about the different event loops.

Posted from: 81.231.170.159
User agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.5.8; U; en) Presto/2.10.229 Version/11.61</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78645</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-11-22 11:00:25 +0000</bug_when>
    <thetext>Since workers have a special event loop, it might be a good idea to have a special name for it, e.g. &quot;worker event loop&quot;, and xref that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78661</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-11-22 19:27:17 +0000</bug_when>
    <thetext>Could you elaborate on this? In most places, I really want to be able to just refer to &quot;the event loop&quot; and have it refer to the worker or document one as appropriate, without having to worry about which it is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78663</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-11-22 19:43:00 +0000</bug_when>
    <thetext>Maybe it&apos;s easier for you, but it&apos;s confusing for me when I try to understand what the spec says for the purpose of writing tests.

In the Web worker section, I think all instances of &quot;event loop&quot; mean &quot;worker event loop&quot;.

In the Cross-document messaging section, I only find one instance of &quot;event loop&quot;, and there it can point to both if it can be either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78664</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-11-22 19:48:56 +0000</bug_when>
    <thetext>I realize there are other features that interact with the event loop and are available in both contexts, like WebSockets. I&apos;m fine with WebSockets referring to &quot;event loop&quot; to mean either, since it only does something in one context. However, the Web Workers and Cross-document messaging sections do stuff in both contexts, and there it would be helpful to be explicit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82607</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-02-06 00:24:11 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7696.
Check-in comment: Integrate the &apos;event loop&apos; mechanism of workers and windows together, and try to specify which is meant when it might be ambiguous.
http://html5.org/tools/web-apps-tracker?from=7695&amp;to=7696</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82608</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-02-06 00:24:32 +0000</bug_when>
    <thetext>Can you take a look at the spec again and let me know if you still think it&apos;s got issues? I&apos;m not 100% sure how to fix it beyond this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83968</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2013-03-04 22:53:33 +0000</bug_when>
    <thetext>Looks good. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86091</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-04-12 22:33:50 +0000</bug_when>
    <thetext>marking fixed per comment 7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>