[Webkit-unassigned] [Bug 103258] New: onload callback for <track> element attached to <video> does not fire

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 26 08:19:33 PST 2012


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

           Summary: onload callback for <track> element attached to
                    <video> does not fire
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: http://w3c-test.org/html/tests/submission/Opera/media/
                    interfaces/TextTrackCue/align.html
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P1
         Component: Media Elements
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: graouts at apple.com
                CC: eric.carlson at apple.com,
                    webkit-bug-importer at group.apple.com


The callback registered via a <track> element's onload property does not fire under this scenario, taken from http://w3c-test.org/html/tests/submission/Opera/media/interfaces/TextTrackCue/align.html:

    var video = document.createElement('video');
    document.body.appendChild(video);
    var t = document.createElement('track');
    t.onload = this.step_func(function(){
      // onload callback code that doesn't fire
    });
    t.src = 'data:text/vtt,'+encodeURIComponent('WEBVTT\n\n00:00:00.000 --> 00:00:00.001\ntest\n\n'+
                                                '00:00:00.000 --> 00:00:00.001 align:start\ntest\n\n'+
                                                '00:00:00.000 --> 00:00:00.001 align:middle\ntest\n\n'+
                                                '00:00:00.000 --> 00:00:00.001 align:end\ntest');
    video.appendChild(t);

I suppose this might be related to the <video> not having an "src" attribute and not loading, but the HTML5 spec says that the only reason a <track> element shouldn't be loaded is if it wasn't attached to a media element, as per the discussion at https://www.w3.org/Bugs/Public/show_bug.cgi?id=20063.

This bug blocks testing of a lot of the Opera-submitted tests for HTML5 captions support as the onload callback is widely used across those tests.

-- 
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