Changeset 119978 in webkit


Ignore:
Timestamp:
Jun 11, 2012, 7:33:03 AM (13 years ago)
Author:
mitz@apple.com
Message:

Reverted r119940 because it caused multiple media tests to fail on Lion.

Source/WebCore:

  • html/HTMLMediaElement.cpp:

(WebCore::HTMLMediaElement::prepareForLoad):
(WebCore):
(WebCore::HTMLMediaElement::userCancelledLoad):

  • html/HTMLMediaElement.h:

(HTMLMediaElement):

  • platform/graphics/mac/MediaPlayerPrivateQTKit.mm:

(WebCore::MediaPlayerPrivateQTKit::commonMovieAttributes):

LayoutTests:

  • http/tests/media/video-src-invalid-error-expected.txt: Removed.
  • http/tests/media/video-src-invalid-error.html: Removed.
Location:
trunk
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r119976 r119978  
     12012-06-11  Dan Bernstein  <mitz@apple.com>
     2
     3        Reverted r119940 because it caused multiple media tests to fail on Lion.
     4
     5        * http/tests/media/video-src-invalid-error-expected.txt: Removed.
     6        * http/tests/media/video-src-invalid-error.html: Removed.
     7
    182012-06-11  János Badics  <jbadics@inf.u-szeged.hu>
    29
  • trunk/Source/WebCore/ChangeLog

    r119977 r119978  
     12012-06-11  Dan Bernstein  <mitz@apple.com>
     2
     3        Reverted r119940 because it caused multiple media tests to fail on Lion.
     4
     5        * html/HTMLMediaElement.cpp:
     6        (WebCore::HTMLMediaElement::prepareForLoad):
     7        (WebCore):
     8        (WebCore::HTMLMediaElement::userCancelledLoad):
     9        * html/HTMLMediaElement.h:
     10        (HTMLMediaElement):
     11        * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
     12        (WebCore::MediaPlayerPrivateQTKit::commonMovieAttributes):
     13
    1142012-06-11  Zoltan Horvath  <zoltan@webkit.org>
    215
  • trunk/Source/WebCore/html/HTMLMediaElement.cpp

    r119940 r119978  
    666666    // Perform the cleanup required for the resource load algorithm to run.
    667667    stopPeriodicTimers();
    668     stopLoadTimer(MediaResource);
     668    m_loadTimer.stop();
    669669    m_sentEndEvent = false;
    670670    m_sentStalledEvent = false;
     
    37163716}
    37173717
    3718 void HTMLMediaElement::stopLoadTimer(PendingLoadFlags flags)
    3719 {
    3720     m_pendingLoadFlags &= ~flags;
    3721 
    3722     if (!m_pendingLoadFlags)
    3723         m_loadTimer.stop();
    3724 }
    3725 
    37263718void HTMLMediaElement::userCancelledLoad()
    37273719{
     
    37383730#endif
    37393731    stopPeriodicTimers();
    3740     stopLoadTimer(MediaResource | TextTrackResource);
     3732    m_loadTimer.stop();
    37413733    m_loadState = WaitingForSource;
     3734    m_pendingLoadFlags = 0;
    37423735
    37433736    // 2 - Set the error attribute to a new MediaError object whose code attribute is set to MEDIA_ERR_ABORTED.
  • trunk/Source/WebCore/html/HTMLMediaElement.h

    r119940 r119978  
    440440    void stopPeriodicTimers();
    441441
    442     typedef unsigned PendingLoadFlags;
    443     void stopLoadTimer(PendingLoadFlags);
    444 
    445442    void seek(float time, ExceptionCode&);
    446443    void finishSeek();
     
    604601    double m_fragmentEndTime;
    605602
     603    typedef unsigned PendingLoadFlags;
    606604    PendingLoadFlags m_pendingLoadFlags;
    607605
  • trunk/Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm

    r119940 r119978  
    9898SOFT_LINK_POINTER(QTKit, QTMovieApertureModeAttribute, NSString *)
    9999
    100 SOFT_LINK_POINTER_OPTIONAL(QTKit, QTMovieOpenAsyncRequiredAttribute, NSString *)
    101100SOFT_LINK_POINTER_OPTIONAL(QTKit, QTSecurityPolicyNoLocalToRemoteSiteAttribute, NSString *)
    102101SOFT_LINK_POINTER_OPTIONAL(QTKit, QTSecurityPolicyNoRemoteToLocalSiteAttribute, NSString *)
     
    124123#define QTMovieLoadStateDidChangeNotification getQTMovieLoadStateDidChangeNotification()
    125124#define QTMovieNaturalSizeAttribute getQTMovieNaturalSizeAttribute()
    126 #define QTMovieOpenAsyncRequiredAttribute getQTMovieOpenAsyncRequiredAttribute()
    127125#define QTMovieCurrentSizeAttribute getQTMovieCurrentSizeAttribute()
    128126#define QTMoviePreventExternalURLLinksAttribute getQTMoviePreventExternalURLLinksAttribute()
     
    256254    } else
    257255        [movieAttributes setValue:[NSNumber numberWithBool:YES] forKey:QTSecurityPolicyNoCrossSiteAttribute];
    258 
    259     if (QTMovieOpenAsyncRequiredAttribute)
    260         [movieAttributes setValue:[NSNumber numberWithBool:YES] forKey:QTMovieOpenAsyncRequiredAttribute];
    261256
    262257    if (m_preload < MediaPlayer::Auto)
Note: See TracChangeset for help on using the changeset viewer.