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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>129748</bug_id>
          
          <creation_ts>2014-03-05 11:15:00 -0800</creation_ts>
          <short_desc>VideoTrackList onchange event should only fire if a track is selected, not deselected</short_desc>
          <delta_ts>2014-06-17 10:31:41 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Brendan Long">b.long</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>987313</commentid>
    <comment_count>0</comment_count>
    <who name="Brendan Long">b.long</who>
    <bug_when>2014-03-05 11:15:00 -0800</bug_when>
    <thetext>Relevant portion of the spec:

&gt; Whenever a track in a VideoTrackList *that was previously not selected is selected*, the user agent must queue a task to fire a simple event named change at the VideoTrackList object. This task must be queued before the task that fires the resize event, if any.
http://www.w3.org/html/wg/drafts/html/CR/embedded-content-0.html#audiotracklist-and-videotracklist-objects

Right now we fire events when a track is deselected also.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>987506</commentid>
    <comment_count>1</comment_count>
    <who name="Brendan Long">b.long</who>
    <bug_when>2014-03-05 19:27:47 -0800</bug_when>
    <thetext>This is going to be hard to test for in WebKitGTK, since playbin won&apos;t let us completely turn video off (so setting selected = false just the video stream to whichever want playbin sicks). I&apos;ll probably do that first..</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>