Bug 48591

Summary: HTML5 Conformance Test failure: approved/video/video_008.htm
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: eric.carlson, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://test.w3.org/html/tests/approved/video/video_008.htm
Bug Depends on:    
Bug Blocks: 48575    

Description David Kilzer (:ddkilzer) 2010-10-28 16:46:16 PDT
The approved/video/video_008.htm test fails with WebKit nightly build r70732 run in Safari 5.0.x.
Comment 1 David Kilzer (:ddkilzer) 2010-10-28 16:46:53 PDT
NOTE: The test takes a while to run (a few seconds), so be patient for the "Waiting..." message to disappear.
Comment 2 Eric Carlson 2010-10-28 21:42:17 PDT
http://test.w3.org/html/tests/approved/video/video_008.htm is also bogus (see https://bugs.webkit.org/show_bug.cgi?id=48590). 

It sets up the <video> element with <source> elements with a 'type' attribute set to "application/octet-stream":

<video id="video0" autoplay onplay="do_play(event);">
    <source src="http://media.w3.org/2010/05/video/movie_300.mp4" type="application/octet-stream">
  <source src="http://media.w3.org/2010/05/video/movie_5.mp4" type="application/octet-stream" media="all">
    Your browser does not support media elements.
</video>

and it fails unless the the first <source> element is chosen. However, the spec says:

    The canPlayType(type) method must return the empty string if type is a type that 
    the user agent knows it cannot render or is the type "application/octet-stream"

where the empty string is defined as "a negative response".
Comment 3 Simon Fraser (smfr) 2010-10-29 08:58:04 PDT
If there's a bug in the test, this should be reported against the test suite.