Bug 236393 - KeyEvents are limited to one per render frame
Summary: KeyEvents are limited to one per render frame
Status: RESOLVED DUPLICATE of bug 226954
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-09 12:00 PST by Michael Feldstein
Modified: 2022-02-10 10:27 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Feldstein 2022-02-09 12:00:39 PST
Safari limits text input to one keypress per frame and queues up the rest, while chrome will send all pending keypresses in the next frame.  So if you have any performance issues while typing quickly it will coalesce into extremely poor performance.

In the codepen, if you open it in chrome and bash keys you'll see that it keeps up with your typing, but if you do the same in safari, the events will come in one at a time and the backlog will create coalescing performance issues.

https://codepen.io/msfeldstein/pen/gOXmPWL
Comment 1 Alexey Proskuryakov 2022-02-10 10:27:30 PST

*** This bug has been marked as a duplicate of bug 226954 ***