Skip to content
  • eric.carlson@apple.com's avatar
    2009-05-08 Eric Carlson <eric.carlson@apple.com> · f60a0b2d
    eric.carlson@apple.com authored
            Reviewed by Darin Adler.
            
            https://bugs.webkit.org/show_bug.cgi?id=25627
            Bug 25627: HTMLMediaElement: some errors should fire on <source> elements
    
            Update for HTML5 spec change to fire 'error' events on <source> element
            when there is a failure while processing/loading a <source>.
    
            Test: media/video-source-error.html
    
            * html/HTMLMediaElement.cpp:
            (WebCore::HTMLMediaElement::enqueueEvent): Remove white-space.
            (WebCore::HTMLMediaElement::loadInternal): Call cancelPendingEventsAndCallbacks instead
            of just calling m_pendingEvents.clear() as we now also need to cancel pending errors on
            all <source> element. 
            (WebCore::HTMLMediaElement::selectMediaResource): Call isSafeToLoadURL() here instead of in
            loadResource() as we need to report errors differently depending on the type of failure. Use
            KURL instead of String.
            (WebCore::HTMLMediaElem...
    f60a0b2d