Bug 75184

Summary: 10 W3C video and audio canPlayType tests are failing on Mac and Win
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: adele, eric.carlson, jberlin, jean-yves.avenard, jer.noble, pilgrim, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar, LayoutTestFailure
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Ryosuke Niwa 2011-12-23 20:04:52 PST
The following tests imported in r103470 are failing on Mac

media/W3C/audio/canPlayType/canPlayType_supported_but_no_codecs_parameter_1.html
media/W3C/audio/canPlayType/canPlayType_supported_but_no_codecs_parameter_2.html
media/W3C/video/canPlayType/canPlayType_codecs_order_2.html
media/W3C/video/canPlayType/canPlayType_codecs_order_3.html
media/W3C/video/canPlayType/canPlayType_supported_but_no_codecs_parameter_2.html
media/W3C/video/canPlayType/canPlayType_supported_but_no_codecs_parameter_3.html
media/W3C/video/canPlayType/canPlayType_two_implies_one_3.html
media/W3C/video/canPlayType/canPlayType_two_implies_one_4.html
media/W3C/video/canPlayType/canPlayType_two_implies_one_5.html
media/W3C/video/canPlayType/canPlayType_two_implies_one_6.html
Comment 1 Jessie Berlin 2012-05-31 10:21:34 PDT
These tests were added to the Skipped list on Mac, but probably just should have been given expected failing results. I am going to add failing expected results for Windows.

This is probably related to https://bugs.webkit.org/show_bug.cgi?id=85409
Comment 2 Radar WebKit Bug Importer 2012-05-31 10:22:41 PDT
<rdar://problem/11566487>
Comment 3 Jessie Berlin 2012-05-31 10:36:22 PDT
Added the Windows expected (failing?) results in http://trac.webkit.org/changeset/119120
Comment 4 Jean-Yves Avenard [:jya] 2023-09-24 20:20:51 PDT
The tests are failing because it incorrectly assumes that if testing for codecs support in one container assumes that it will also be supported in another container.

like:
```
 if (v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"') == "probably") {
  assert_equals(
   v.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'),
   v.canPlayType('video/ogg; codecs="avc1.42E01E"'),
   "ability to play two codecs implies the ability to play one");
 }
```

that avc1 and mp4a is supported in an mp4 doesn't imply that video/ogg is supported.

WebKit on Mac or WPE doesn't support the ogg container.