2010-04-19 Eric Carlson <eric.carlson@apple.com>
Reviewed by Simon Fraser.
Setting media element 'src' attribute should trigger immediate load
https://bugs.webkit.org/show_bug.cgi?id=37728
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::attributeChanged): Schedule load every time 'src' attribute
changes unless it is missing.
(WebCore::HTMLMediaElement::prepareForLoad): Include steps 3 to 6 from loadInternal.
(WebCore::HTMLMediaElement::loadInternal): Steps 3 to 6 are now in prepareForLoad.
(WebCore::HTMLMediaElement::loadResource): MediaPlayer is now allocated in prepareForLoad
so the previously loading file, if any, is cancelled there.
2010-04-19 Eric Carlson <eric.carlson@apple.com>
Reviewed by Simon Fraser.
Setting media element 'src' attribute should trigger immediate load
https://bugs.webkit.org/show_bug.cgi?id=37728
* media/event-attributes-expected.txt: Updated results.
* media/event-attributes.html: Do not need to call load().
* media/video-source-add-src-expected.txt: Removed.
* media/video-source-add-src.html: Removed.
* media/video-src-change-expected.txt: Updated results.
* media/video-src-change.html: Update test to match current behavior.
* media/video-src-invalid-remove-expected.txt: Updated results.
* media/video-src-invalid-remove.html: Update test to match current behavior.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57820 268f45cc-cd09-0410-ab3c-d52691b4dbfc
11 files changed