2009-10-16 Andrew Scherkus <scherkus@chromium.org>
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Oct 2009 22:03:40 +0000 (22:03 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Oct 2009 22:03:40 +0000 (22:03 +0000)
commita98f9148c6235eeda0f2b2b55f6d7077d12a2cbb
tree57f7073620ad49b48aeafd50fa12c261ba46a68e
parent2737770cdfa857c950339516182c35ed9fa797c5
2009-10-16  Andrew Scherkus  <scherkus@chromium.org>

        Reviewed by Eric Carlson.

        Updated media resource selection algorithm to reflect latest HTML 5 specification.

        https://bugs.webkit.org/show_bug.cgi?id=30407

        * media/video-play-pause-exception-expected.txt:
        * media/video-play-pause-exception.html:
        * media/video-src-empty-expected.txt: Added.
        * media/video-src-empty.html: Added.
        * media/video-src-none-expected.txt: Added.
        * media/video-src-none.html: Added.
2009-10-16  Andrew Scherkus  <scherkus@chromium.org>

        Reviewed by Eric Carlson.

        Updated media resource selection algorithm to reflect latest HTML 5 specification.

        Noticable changes:
            -  Elements with no source should have their network state set to NETWORK_EMPTY as opposed to NETWORK_NO_SOURCE
            -  Empty string ("") is now considered a valid URL resolving to the current page and will be loaded

        Tests: media/video-src-empty.html
               media/video-src-none.html

        https://bugs.webkit.org/show_bug.cgi?id=30407

        * html/HTMLMediaElement.cpp:
        (WebCore::HTMLMediaElement::selectMediaResource): Updated code and comments to match spec.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@49702 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/video-play-pause-exception-expected.txt
LayoutTests/media/video-play-pause-exception.html
LayoutTests/media/video-src-empty-expected.txt [new file with mode: 0644]
LayoutTests/media/video-src-empty.html [new file with mode: 0644]
LayoutTests/media/video-src-none-expected.txt [new file with mode: 0644]
LayoutTests/media/video-src-none.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLMediaElement.cpp