Bug 252810 - Click event suppressed when element's content change
Summary: Click event suppressed when element's content change
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari Technology Preview
Hardware: Mac (Apple Silicon) macOS 13
: P2 Normal
Assignee: Nobody
URL: https://codepen.io/ziadkh0/pen/YzOWKgj
Keywords: HasReduction, InRadar
Depends on:
Blocks:
 
Reported: 2023-02-23 03:52 PST by bugs.webkit
Modified: 2023-03-02 03:53 PST (History)
2 users (show)

See Also:


Attachments
Test case reduction for the bug (680 bytes, text/html)
2023-02-23 03:52 PST, bugs.webkit
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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>