<?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>16701</bug_id>
          
          <creation_ts>2012-04-11 17:53:23 +0000</creation_ts>
          <short_desc>The text track cue active flag should be set before the cuechange event is fired.</short_desc>
          <delta_ts>2012-04-11 18:41:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>TextTracks CG</product>
          <component>WebVTT</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Anna Cavender">annacc</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>mike</cc>
    
    <cc>public-texttracks</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66619</commentid>
    <comment_count>0</comment_count>
    <who name="Anna Cavender">annacc</who>
    <bug_when>2012-04-11 17:53:23 +0000</bug_when>
    <thetext>When updating the active text track cues, the cuechange event is fired before setting (and unsetting) the active flag on the cues before firing the cuechange event.  Because of this, activeCues() may not return an accurate set of cues at the moment that the cuechange event is received.

Specifically, I propose that steps 15 and 16 be swapped under &quot;When the current playback position of a media element changes ...&quot; so that the active flag is first set and then the cuechange event is fired.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66620</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-04-11 17:59:56 +0000</bug_when>
    <thetext>The event isn&apos;t fired in step 15. It&apos;s *queued* in step 15. It isn&apos;t fired until the event queue spins, which happens after the whole algorithm has finished.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66622</commentid>
    <comment_count>2</comment_count>
    <who name="Anna Cavender">annacc</who>
    <bug_when>2012-04-11 18:41:49 +0000</bug_when>
    <thetext>Ah, thanks for the clarification.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>