Bug 44370

Summary: Media engine should not be asked to open all urls
Product: WebKit Reporter: Eric Carlson <eric.carlson>
Component: MediaAssignee: Eric Carlson <eric.carlson>
Status: RESOLVED FIXED    
Severity: Normal CC: ademar
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 51249    
Attachments:
Description Flags
proposed patch mitz: review+

Description Eric Carlson 2010-08-20 16:35:45 PDT
MediaPlayer::load() currently tries to find a media engine that supports the specified MIME type, if there is one, but it uses the first registered engine if none claims the type so the media engine can sniff the data (if it wishes) and handle misconfigured servers. 

This is reasonable in the case where no type is specified in the markup, but it should not ask a media engine to open a url if the markup has a type attribute, and canPlayType() would return "" for that type.
Comment 1 Eric Carlson 2010-08-20 16:46:22 PDT
Created attachment 65010 [details]
proposed patch
Comment 2 Eric Carlson 2010-08-21 11:43:20 PDT
http://trac.webkit.org/changeset/65779
Comment 3 Ademar Reis 2011-01-24 12:20:46 PST
Revision r65779 cherry-picked into qtwebkit-2.2 with commit 0386972 <http://gitorious.org/webkit/qtwebkit/commit/0386972>