Bug 33855

Summary: error events don't fire if no <source> elements passed to media engine
Product: WebKit Reporter: Eric Carlson <eric.carlson>
Component: MediaAssignee: Eric Carlson <eric.carlson>
Status: RESOLVED FIXED    
Severity: Normal CC: aroben
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Test case
none
Proposed patch darin: review+

Description Eric Carlson 2010-01-19 12:19:47 PST
No error event is fired if a none of a media element's <source> elements has a valid src, media, or type attribute, but the spec says: "[If] the media element has neither a src attribute nor a source element child: set the networkState to NETWORK_EMPTY, and abort these steps; the synchronous section ends."

To reproduce:

1. Download the attached test case to LayoutTests/media
2. run-webkit-tests media/video-source-error-no-candidate.html
Comment 1 Eric Carlson 2010-01-19 12:20:19 PST
Created attachment 46934 [details]
Test case
Comment 2 Eric Carlson 2010-01-19 13:04:08 PST
Created attachment 46939 [details]
Proposed patch
Comment 3 Eric Carlson 2010-01-19 13:15:50 PST
<rdar://problem/7557393>
Comment 4 Eric Carlson 2010-01-19 13:16:09 PST
http://trac.webkit.org/changeset/53486