Skip to content
  • commit-queue@webkit.org's avatar
    Setting media element 'src' attribute to "" should trigger load · e10cfa27
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=47907
    
    Patch by Arun Patole <arun.patole@motorola.com> on 2012-02-09
    Reviewed by Eric Carlson.
    
    Source/WebCore:
    
    Test: media/video-src-empty.html
    
    * html/HTMLMediaElement.cpp:
    (WebCore::HTMLMediaElement::attributeChanged):Trigger a load, as long as the 'src' attribute is present.
    
    LayoutTests:
    
    * media/video-src-empty-expected.txt: Added, test for <video> with empty src.
    * media/video-src-empty.html: Added.
    * media/video-src-none-expected.txt:
    * media/video-src-none.html: removed "empty src" test as it is handled in separate test: video-src-empty.html.
    * platform/chromium/test_expectations.txt: media/video-empty-source.html needs a rebaseline.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@107244 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e10cfa27