Bug 240562

Summary: Mouse events triggered out of order when editing with japanese keyboard
Product: WebKit Reporter: Chandru <chandraprakash.siva>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: megan_gardner, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: All   
OS: Unspecified   
Attachments:
Description Flags
Events triggered out of order none

Description Chandru 2022-05-17 23:20:37 PDT
Created attachment 459528 [details]
Events triggered out of order

Mouse down and mouse up events are triggered out of order sometimes when clicking on an input field (or contenteditable div) with the japanese keyboard selected.

The expected order should be 
1.mousedown
2.mouseup

The actual order is 
1.mouseup
2.mousedown


Reproducible steps:
1.Switch input method to japanese (Hiragina)
2.Type some text, click on the input area repeatedly.

Created a fiddle to test this (modified version of https://dvcs.w3.org/hg/d4e/raw-file/tip/mouse-event-test.html)
https://jsfiddle.net/4dzepn1x/
Comment 1 Radar WebKit Bug Importer 2022-05-24 23:21:31 PDT
<rdar://problem/93882253>