[Webkit-unassigned] [Bug 32161] New: HTML 5 Audio "progress" event is sending undefined values in webkit nightly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 4 08:47:53 PST 2009


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

           Summary: HTML 5 Audio "progress" event is sending undefined
                    values in webkit nightly
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
               URL: http://bowser.macminicolo.net/~jhuckaby/bugs/snow-leop
                    ard-audio-progress/
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Media Elements
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jhuckaby at gmail.com


The HTML 5 Audio "progress" event is supposed to send the number of bytes
loaded, and the number of total bytes in the audio track.  This works perfectly
in production Safari 4.0.4, but in the webkit nightly build (6531.21.10,
r51669), the progress event sends back "undefined" values.

Test Page:
http://bowser.macminicolo.net/~jhuckaby/bugs/snow-leopard-audio-progress/

HTMLMediaElement Reference Documentation:
http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariJSRef/HTMLMediaElement/HTMLMediaElement.html

Source code of HTMLMediaElement.cpp:
http://www.opensource.apple.com/source/WebCore/WebCore-5525.28.4/html/HTMLMediaElement.cpp

void HTMLMediaElement::initAndDispatchProgressEvent(const AtomicString&
eventName)
{
    bool totalKnown = m_player && m_player->totalBytesKnown();
    unsigned loaded = m_player ? m_player->bytesLoaded() : 0;
    unsigned total = m_player ? m_player->totalBytes() : 0;
    dispatchProgressEvent(eventName, totalKnown, loaded, total);
    if (renderer())
        renderer()->updateFromElement();
}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list