Bug 216689

Summary: HTMLSelectElement.onchange event handler does not have user gesture privilege
Product: WebKit Reporter: youenn fablet <youennf>
Component: MediaAssignee: youenn fablet <youennf>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, cdumez, changseok, eric.carlson, esprehn+autocc, ews-watchlist, gyuyoung.kim, jer.noble, mifenton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description youenn fablet 2020-09-18 01:42:34 PDT
As show in https://jsfiddle.net/Lvau5ofp/2/, even though onchange event is fired from a user gesture, the onchange event handler cannot be used to start video elements.
Comment 1 Radar WebKit Bug Importer 2020-09-18 01:42:56 PDT
<rdar://problem/69132811>
Comment 2 youenn fablet 2020-09-18 02:02:45 PDT
Created attachment 409118 [details]
Patch
Comment 3 Ahmad Saleem 2023-09-20 03:11:29 PDT
This didn't landed: https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLSelectElement.cpp#738

Do we need this?
Comment 4 Ahmad Saleem 2023-10-12 16:26:13 PDT
Updated test case with test video:

https://jsfiddle.net/wjcf9Lyk/1/show