<?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>20064</bug_id>
          
          <creation_ts>2012-11-23 15:35:12 +0000</creation_ts>
          <short_desc>Technique used to determine support for mp4 or webm in track test is faulty</short_desc>
          <delta_ts>2012-11-23 15:35:12 +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>testsuite</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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="Antoine Quint">graouts</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>mike</cc>
    
    <cc>public-html-wg-issue-tracking</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>78703</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2012-11-23 15:35:12 +0000</bug_when>
    <thetext>See the test at http://w3c-test.org/html/tests/submission/Opera/media/interfaces/TextTrack/activeCues.html. It contains the following code to determine the &lt;video&gt; src to be used on line 101:

video.src = &apos;../../resources/media/sunflower.&apos; + (video.canPlayType(&apos;video/webm&apos;) ? &apos;webm&apos; : &apos;mp4&apos;);

This isn&apos;t a very robust approach as .canPlayType(&apos;video/webm&apos;) returns &quot;maybe&quot; on a WebKit nightly when webm is not actually supported, but the string &quot;maybe&quot; evaluates to &quot;true&quot; as a JS condition, and thus the WebM file is used. The test should be rewritten such that it either:

1. uses &lt;source&gt; elements to let the browser pick the suitable resource
2. checks that .canPlayType() returns &quot;probably&quot; to assume that the tested type can be played.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>