Bug 33855 - error events don't fire if no <source> elements passed to media engine
Summary: error events don't fire if no <source> elements passed to media engine
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2010-01-19 12:19 PST by Eric Carlson
Modified: 2010-01-19 13:16 PST (History)
1 user (show)

See Also:


Attachments
Test case (1.72 KB, text/html)
2010-01-19 12:20 PST, Eric Carlson
no flags Details
Proposed patch (5.57 KB, patch)
2010-01-19 13:04 PST, Eric Carlson
darin: review+
Details | Formatted Diff | Diff

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