Bug 48591 - HTML5 Conformance Test failure: approved/video/video_008.htm
Summary: HTML5 Conformance Test failure: approved/video/video_008.htm
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://test.w3.org/html/tests/approve...
Depends on:
Blocks: 48575
  Show dependency treegraph
Reported: 2010-10-28 16:46 PDT by David Kilzer (:ddkilzer)
Modified: 2010-10-29 08:58 PDT (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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.

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.