Bug 225877

Summary: [GTK] media player causes view to jump to player
Product: WebKit Reporter: erusan
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Linux   
Attachments:
Description Flags
Video of sample page jumping to player none

Description erusan 2021-05-17 10:21:00 PDT
Created attachment 428842 [details]
Video of sample page jumping to player

The built-in media player causes the page to jump to the video's location once the media finishes playing (perhaps at other times).

To reproduce:
1) Visit page which utilizes webkit's media controls, such as http://camendesign.com/code/video_for_everybody/test.html (this works with webms, mp4s, seemingly anything using the native player)
2) Play some media
3) Immediately scroll past the media so that it is out of view
4) Result: Once media finishes playing, view jumps back to player

In the link above ( http://camendesign.com/code/video_for_everybody/test.html ), it seems you need to scroll perhaps before the video is buffered in order for this to happen. See attachment.