RESOLVED FIXED 53818
MediaPlayerPrivateQTKit should use the Application Cache during load.
https://bugs.webkit.org/show_bug.cgi?id=53818
Summary MediaPlayerPrivateQTKit should use the Application Cache during load.
Jer Noble
Reported 2011-02-04 15:07:53 PST
Once https://bugs.webkit.org/show_bug.cgi?id=53784 lands, the MediaPlayerPrivateQTKit should query the Application Cache for resources during load.
Attachments
Patch (6.11 KB, patch)
2011-03-23 15:24 PDT, Jer Noble
mjs: review+
Jer Noble
Comment 1 2011-03-23 15:02:09 PDT
Jer Noble
Comment 2 2011-03-23 15:24:58 PDT
Maciej Stachowiak
Comment 3 2011-03-23 18:02:25 PDT
Comment on attachment 86709 [details] Patch r=me
WebKit Review Bot
Comment 4 2011-03-23 21:45:04 PDT
Jer Noble
Comment 5 2011-03-23 21:46:50 PDT
The build failure is due to the dependant patch from Bug #53784 not being applied first.
Eric Carlson
Comment 6 2011-03-23 22:38:11 PDT
Comment on attachment 86709 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=86709&action=review > Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm:319 > + NSMutableDictionary *movieAttributes = [NSMutableDictionary dictionaryWithObjectsAndKeys: > + [NSNumber numberWithBool:m_player->preservesPitch()], QTMovieRateChangesPreservePitchAttribute, > + [NSNumber numberWithBool:YES], QTMoviePreventExternalURLLinksAttribute, > + [NSNumber numberWithBool:YES], QTSecurityPolicyNoCrossSiteAttribute, > + [NSNumber numberWithBool:NO], QTMovieAskUnresolvedDataRefsAttribute, > + [NSNumber numberWithBool:NO], QTMovieLoopsAttribute, > + [NSNumber numberWithBool:YES], @"QTMovieOpenForPlaybackAttribute", > +#ifndef BUILDING_ON_TIGER > + QTMovieApertureModeClean, QTMovieApertureModeAttribute, > +#endif > + nil]; > + I hate having code duplicated in multiple functions, can you put this into a function that you call from MediaPlayerPrivateQTKit::createQTMovie(const String&) and here?
Jer Noble
Comment 7 2011-03-23 22:56:44 PDT
(In reply to comment #6) > (From update of attachment 86709 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=86709&action=review > > > Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm:319 > > + NSMutableDictionary *movieAttributes = [NSMutableDictionary dictionaryWithObjectsAndKeys: > > + [NSNumber numberWithBool:m_player->preservesPitch()], QTMovieRateChangesPreservePitchAttribute, > > + [NSNumber numberWithBool:YES], QTMoviePreventExternalURLLinksAttribute, > > + [NSNumber numberWithBool:YES], QTSecurityPolicyNoCrossSiteAttribute, > > + [NSNumber numberWithBool:NO], QTMovieAskUnresolvedDataRefsAttribute, > > + [NSNumber numberWithBool:NO], QTMovieLoopsAttribute, > > + [NSNumber numberWithBool:YES], @"QTMovieOpenForPlaybackAttribute", > > +#ifndef BUILDING_ON_TIGER > > + QTMovieApertureModeClean, QTMovieApertureModeAttribute, > > +#endif > > + nil]; > > + > > I hate having code duplicated in multiple functions, can you put this into a function that you call from MediaPlayerPrivateQTKit::createQTMovie(const String&) and here? Sure, except for the QTMovieOpenForPlaybackAttribute, which is conditional in createQTMovie.
Jer Noble
Comment 8 2011-03-25 17:29:22 PDT
WebKit Review Bot
Comment 9 2011-03-25 18:13:24 PDT
http://trac.webkit.org/changeset/82009 might have broken Leopard Intel Release (Tests) The following tests are not passing: plugins/embed-prefers-plugins-for-images.html
Note You need to log in before you can comment on or make changes to this bug.