Skip to content
  • eric.carlson@apple.com's avatar
    2010-08-11 Eric Carlson <eric.carlson@apple.com> · 128d9083
    eric.carlson@apple.com authored
            Reviewed by Darin Adler.
    
            Inserting a <source> element should immediately set networkState to NETWORK_NO_SOURCE.
            https://bugs.webkit.org/show_bug.cgi?id=42897
    
            A <source> element inserted as a child of a media element with a networkState of NETWORK_EMPTY
            should cause the networkState to immediately change to NETWORK_NO_SOURCE.
    
            * WebCore.xcodeproj/project.pbxproj:
            * html/HTMLMediaElement.cpp:
            (WebCore::HTMLMediaElement::HTMLMediaElement): Remove unused variable m_processingLoad.
            (WebCore::HTMLMediaElement::prepareForLoad): Set m_networkState to NETWORK_NO_SOURCE.
            (WebCore::HTMLMediaElement::loadInternal): Remove unused variable m_processingLoad.
            (WebCore::HTMLMediaElement::selectMediaResource): No need to change m_networkState, it was done in prepareForLoad.
            * html/HTMLMediaElement.h:
    
            * html/HTMLSourceElement.cpp:
            (WebCore::HTMLSourceElement::insertedIntoTree): Renamed from insertedIntoDocument because we want
            to do this setup whether or not the parent media element is in the document.
            * html/HTMLSourceElement.h:
    
    2010-08-11  Eric Carlson  <eric.carlson@apple.com>
    
            Reviewed by Darin Adler.
    
            Inserting a <source> element should immediately set networkState to NETWORK_NO_SOURCE.
            https://bugs.webkit.org/show_bug.cgi?id=42897
    
            * media/remove-from-document-no-load-expected.txt:
            * media/remove-from-document-no-load.html:
            * media/video-pause-empty-events-expected.txt:
            * media/video-pause-empty-events.html:
            * media/video-source-inserted-expected.txt: Added.
            * media/video-source-inserted.html: Added.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65170 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    128d9083