Bug 216689 - HTMLSelectElement.onchange event handler does not have user gesture privilege
Summary: HTMLSelectElement.onchange event handler does not have user gesture privilege
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-09-18 01:42 PDT by youenn fablet
Modified: 2023-10-12 16:26 PDT (History)
10 users (show)

See Also:


Attachments
Patch (1.63 KB, patch)
2020-09-18 02:02 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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