2010-04-19 Eric Carlson <eric.carlson@apple.com>
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Apr 2010 18:28:39 +0000 (18:28 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Apr 2010 18:28:39 +0000 (18:28 +0000)
commited0afe47fd69db7b4532e605fda2d138d7ccdba1
treed9d29e83ce8fc88524d3b29291892cc9f2caf303
parent2cd7c332e85c0a5e41aefd30c31517fd60c69a58
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: https://svn.webkit.org/repository/webkit/trunk@57820 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/event-attributes-expected.txt
LayoutTests/media/event-attributes.html
LayoutTests/media/video-source-add-src-expected.txt [deleted file]
LayoutTests/media/video-source-add-src.html [deleted file]
LayoutTests/media/video-src-change-expected.txt
LayoutTests/media/video-src-change.html
LayoutTests/media/video-src-invalid-remove-expected.txt
LayoutTests/media/video-src-invalid-remove.html
WebCore/ChangeLog
WebCore/html/HTMLMediaElement.cpp