Bug 252810

Summary: Click event suppressed when element's content change
Product: WebKit Reporter: bugs.webkit
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, webkit-bug-importer
Priority: P2 Keywords: HasReduction, InRadar
Version: Safari Technology Preview   
Hardware: Mac (Apple Silicon)   
OS: macOS 13   
URL: https://codepen.io/ziadkh0/pen/YzOWKgj
Attachments:
Description Flags
Test case reduction for the bug none

Description bugs.webkit 2023-02-23 03:52:45 PST
Created attachment 465131 [details]
Test case reduction for the bug

When clicking an element (like a button) who's content is changing, the corresponding click event is suppressed.
Probably because the click started (mouse down) on a text node that was removed before it ended (mouse up). 

Found on:
 - WebKit 260738@main on macOS 13.2.1 (22D68) [M1]
 - Safari Version 16.3 (18614.4.6.1.6) on macOS 13.2.1 (22D68) [M1]
 - Safari Technology Preview Release 164 (Safari 16.4, WebKit 18616.1.2) on macOS 13.2.1 (22D68) [M1]
 - Safari Version 15.6.1 (15613.3.9.1.16, 15613) on macOS 10.15.7 (19H2026) [Intel]

Not found on:
 - Safari on iOS 15.7.3
Comment 1 Radar WebKit Bug Importer 2023-03-02 03:53:17 PST
<rdar://problem/106137469>