Bug 206512

Summary: Video HTML tag fails to fire 'ended' event on Windows when video reaches end
Product: WebKit Reporter: Herb Miller Jr. <herb>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: herb
Priority: P2    
Version: Other   
Hardware: PC   
OS: Windows 10   
Attachments:
Description Flags
Test case demonstrating behavior
none
First (failed) attempt at patching none

Herb Miller Jr.
Reported 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.
Attachments
Test case demonstrating behavior (3.36 MB, application/x-zip-compressed)
2020-01-20 14:28 PST, Herb Miller Jr.
no flags
First (failed) attempt at patching (2.07 KB, patch)
2020-01-20 14:32 PST, Herb Miller Jr.
no flags
Herb Miller Jr.
Comment 1 2020-01-20 14:32:32 PST
Created attachment 388257 [details] First (failed) attempt at patching
Note You need to log in before you can comment on or make changes to this bug.