2009-08-20 Eric Carlson <eric.carlson@apple.com>
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Aug 2009 17:21:35 +0000 (17:21 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Aug 2009 17:21:35 +0000 (17:21 +0000)
commit0ddaa68a483c58e7c02be8d98193fbc49eb5d9ef
treea789c5202e3fcf1b8aa55c91877161252d93e952
parent4330629063226ae58f9e982df239e4bb43c2f3e2
2009-08-20  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by Anders Carlsson.

        HTML5 media elements must fire 'loadend' progress event
        https://bugs.webkit.org/show_bug.cgi?id=28419

        * dom/EventNames.h:
            Define loadend.

        * html/HTMLMediaElement.cpp:
        (WebCore::HTMLMediaElement::parseMappedAttribute):
            Deal with onloadend.
        (WebCore::HTMLMediaElement::loadInternal):
            Post 'loadend' immediately after 'abort'.
        (WebCore::HTMLMediaElement::noneSupported):
            Post 'loadend' immediately after 'error'.
        (WebCore::HTMLMediaElement::mediaEngineError):
            Ditto.
        (WebCore::HTMLMediaElement::setNetworkState):
            Post 'loadend' immediately after 'load'.
        (WebCore::HTMLMediaElement::userCancelledLoad):
            Post 'loadend' immediately after 'abort'.

2009-08-20  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by Anders Carlsson.

        HTML5 media elements must fire 'loadend' progress event
        https://bugs.webkit.org/show_bug.cgi?id=28419

        Add 'loadend' to existing tests.

        * media/event-attributes-expected.txt:
        * media/event-attributes.html:
        * media/media-load-event-expected.txt:
        * media/media-load-event.html:
        * media/progress-event-at-least-one-expected.txt:
        * media/progress-event-at-least-one.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@47579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/event-attributes-expected.txt
LayoutTests/media/event-attributes.html
LayoutTests/media/media-load-event-expected.txt
LayoutTests/media/media-load-event.html
LayoutTests/media/progress-event-at-least-one-expected.txt
LayoutTests/media/progress-event-at-least-one.html
WebCore/ChangeLog
WebCore/dom/EventNames.h
WebCore/html/HTMLMediaElement.cpp