video.currentSrc should return empty when no resource is loaded
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Nov 2013 20:11:31 +0000 (20:11 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Nov 2013 20:11:31 +0000 (20:11 +0000)
commita3f7f31147de0f2c5460114021d23a5c243a507e
tree558bdc7c7f37573e228fa3fc9ceb23104164c959
parent41f42f8beeb91e741bce1e25adb2bf1d8d3e5e62
video.currentSrc should return empty when no resource is loaded
https://bugs.webkit.org/show_bug.cgi?id=124898

Reviewed by Dan Bernstein.

Source/WebCore:

Test: media/video-currentsrc-cleared.html

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::prepareForLoad): Set m_currentSrc to empty in
    preparation for attempting to load a new url.

LayoutTests:

* media/video-currentsrc-cleared-expected.txt: Added.
* media/video-currentsrc-cleared.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@159789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/video-currentsrc-cleared-expected.txt [new file with mode: 0644]
LayoutTests/media/video-currentsrc-cleared.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLMediaElement.cpp