Bug 1727160 [wpt PR 30130] - [selectmenu] Handle synthetic keyboard event, a=testonly
commit42adf2e1ecce64f052ff4594cb975076dbc04b0f
authorDan Clark <daniec@microsoft.com>
Wed, 1 Sep 2021 14:03:56 +0000 (1 14:03 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 2 Sep 2021 10:30:12 +0000 (2 10:30 +0000)
tree6a3a8abc044af7ac347e53bbad0666655a0ca6eb
parent6d345fae8da152001c8360650587a4040a2245cc
Bug 1727160 [wpt PR 30130] - [selectmenu] Handle synthetic keyboard event, a=testonly

Automatic update from web-platform-tests
[selectmenu] Handle synthetic keyboard event

An event created with createEvent can trigger selectmenu's keydown
handlers, but will fail the cast to a KeyboardEvent. Check for this
case and bail out to prevent a crash.

Bug: 1242148
Change-Id: I5fc1aa430f89fdb76b270f0aaffdbe2eb358b86b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3114727
Reviewed-by: Mason Freed <masonf@chromium.org>
Reviewed-by: Ionel Popescu <iopopesc@microsoft.com>
Commit-Queue: Dan Clark <daniec@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#914506}

--

wpt-commits: ea4b3c2a066761983830175df7f9312d2baf8c1e
wpt-pr: 30130
testing/web-platform/tests/html/semantics/forms/the-selectmenu-element/selectmenu-keyboard.tentative.html