<?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>18590</bug_id>
          
          <creation_ts>2012-08-16 12:54:56 +0000</creation_ts>
          <short_desc>Firing an event is sometimes missing a target and &quot;queue a task&quot;</short_desc>
          <delta_ts>2012-10-12 12:06:32 +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>Media Source Extensions</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philip Jägenstedt">philipj</reporter>
          <assigned_to name="Adrian Bateman [MSFT]">adrianba</assigned_to>
          <cc>acolwell</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-media</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>72277</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-08-16 12:54:56 +0000</bug_when>
    <thetext>In HTML, the phrasing is &quot;fire a simple event named X at Y&quot;, sometimes preceded by &quot;queue a task to&quot;.

There are several instances where the target or &quot;queue a task&quot; is missing in MSE:

http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#mediasource-attach

&quot;Fire a simple event named sourceopen.&quot; doesn&apos;t name the target of the event

http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#mediasource-detach

&quot;fire an emptied event&quot; is inconsistent in phrasing and also missing the target.

http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#dom-duration

&quot;Update HTMLMediaElement.duration to the new duration and schedule the appropriate durationchange event to fire&quot; is using &quot;schedule&quot; instead of &quot;queue a task&quot;, but presumably means the same thing? (Note also that invoking &quot;When the length of the media resource changes to a known value&quot; in HTML by phrasing this differently would remove the need to mention the event at all.)

http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html#dom-addsourcebuffer

&quot;Add the new object to sourceBuffers and fire a addsourcebuffer on that object.&quot; This is the really problematic instance, the one I filed this bug for. Since this is inside addSourceBuffer, failing to say &quot;queue a task&quot; means that the event should be fired synchronously before the method returns. This is almost certainly not intended.

This is not a full list, search for &quot;event&quot; for more.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75618</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2012-10-08 19:52:36 +0000</bug_when>
    <thetext>Changes committed:
http://dvcs.w3.org/hg/html-media/rev/c3de559a1c37

There are still a few instances in Section 2, but I expect those to go away when I start addressing https://www.w3.org/Bugs/Public/show_bug.cgi?id=18575</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76090</commentid>
    <comment_count>2</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2012-10-12 12:06:32 +0000</bug_when>
    <thetext>I&apos;ve verified that the &quot;queue a task to&quot; and the event targets are everywhere except in section 2, although I haven&apos;t carefully reviewed that all of the event targets are correct.

Editorial: &quot;queue a task to&quot; now often appears at the beginning of a sentence without being capitalized.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>