[Webkit-unassigned] [Bug 150348] New: Media "ended" event incorrectly fires when currentTime is set

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 19 17:31:07 PDT 2015


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

            Bug ID: 150348
           Summary: Media "ended" event incorrectly fires when currentTime
                    is set
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: Other
            Status: NEW
          Severity: Major
          Priority: P2
         Component: HTML Events
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: andrewleung at sfu.ca

Created attachment 263535
  --> https://bugs.webkit.org/attachment.cgi?id=263535&action=review
Sample HTML page with an externally-linked audio file to demonstrate the bug

The Media "ended" event appears to fire incorrectly when the currentTime property is altered after the media has ended playback. When that happens, the event does not fire properly again until after the playback ends a second time. I attached a sample HTML file to demonstrate the issue.

Steps to reproduce:

1. On a page that has a video/audio element, attach an "ended" event listener
2. In the event handler, alert a message
3. In the event handler, sets the currentTime property to 0
4. Play the video/audio until it ends
5. Play the video/audio a second time until it ends

Expected results:

The message should be alerted only once every time the playback ends.

Actual results:

The message gets alerted twice at the end of the first playback. The message does not get alerted at all at the end of the second playback.

Tested browsers:

Safari 8.0.8 on OS X 10.10.5   -- NOT affected
Safari 9.0 on OS X 10.10.5     -- affected
Safari 9.0 on OS X 10.11       -- affected
WebKit r191315 on OS X 10.10.5 -- affected
MobileSafari on iOS 8.4.1      -- NOT affected
MobileSafari on iOS 9.0.2      -- affected

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151020/446bc4aa/attachment.html>


More information about the webkit-unassigned mailing list