[Webkit-unassigned] [Bug 180465] change event is dispatched when .files property is set at <input type="file"> element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 4 18:34:48 PDT 2021


Kaiido <tristan.fraipont at gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |tristan.fraipont at gmail.com

--- Comment #2 from Kaiido <tristan.fraipont at gmail.com> ---
This is a Safari only bug, still reproducible in current TP Release 128 (Safari 15.0, WebKit 16612.

Here is a fiddle reproducing the issue: https://jsfiddle.net/34sxmbqc/

Specs (https://html.spec.whatwg.org/multipage/input.html#dom-input-files) do not ask to fire an event here, since the change has been caused by script manipulation.

The particularly alarming point is that this event even has the `isTrusted` property set to `true`.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210805/bff07a3d/attachment.htm>

More information about the webkit-unassigned mailing list