Bug 206512 - Video HTML tag fails to fire 'ended' event on Windows when video reaches end
Summary: Video HTML tag fails to fire 'ended' event on Windows when video reaches end
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Other
Hardware: PC Windows 10
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-20 14:28 PST by Herb Miller Jr.
Modified: 2020-01-24 17:37 PST (History)
1 user (show)

See Also:


Attachments
Test case demonstrating behavior (3.36 MB, application/x-zip-compressed)
2020-01-20 14:28 PST, Herb Miller Jr.
no flags Details
First (failed) attempt at patching (2.07 KB, patch)
2020-01-20 14:32 PST, Herb Miller Jr.
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Herb Miller Jr. 2020-01-20 14:28:12 PST
Created attachment 388256 [details]
Test case demonstrating behavior

This occurs for me building WinCairo port, webkit trunk (revision 254831), but has been the case for quite some time (year+ as it presents in QtWebKit 5.212).

Attaching a Javascript callback to the ended event of a video tag and letting the video play through results in the event never getting called. A test case is attach that plays a 15 second video and writes "Fired" to console.log() on ended. Opening the inspector, going to the console, and playing the video never results in the "Fired" message.

I made an attempt to patch it that gets the event to fire, but somehow breaks the duration calculation. I've attached it in case it helps narrow down where to start looking for the problem.
Comment 1 Herb Miller Jr. 2020-01-20 14:32:32 PST
Created attachment 388257 [details]
First (failed) attempt at patching