Bug 233636

Summary: Pointer events are not triggered inside object elements on iPhone Safari
Product: WebKit Reporter: kari.pihkala
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, cdumez, graouts, hi, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: iPhone / iPad   
OS: iOS 15   
See Also: https://bugs.webkit.org/show_bug.cgi?id=203786
Attachments:
Description Flags
testcase.html none

Description kari.pihkala 2021-11-30 07:13:55 PST
Created attachment 445412 [details]
testcase.html

Pointer events, such as onpointerdown, onpointerup, onpointerenter and onpointerleave, are not triggered on iPhone Safari.

How to reproduce:

1. Host the attached testcase.html file on a server.
2. Load the testcase.html page on iPhone Safari from the server.
3. Tap the black circle. Hold the finger down, the circle should become green (triggered by onpointerdown).
4. Release and the circle becomes dark gray (triggered by onclick).

Step 3 fails on iPhone Safari. The circle doesn't become green, which means that onpointerdown is not triggered. It does become dark gray when the touch is released, so onclick is correctly triggered.

Other pointer events are not triggered either (note: they are not tested by the testcase to keep it simple).

Tested to fail on iOS Safari 15.1. All events are triggered correctly on Mac Safari 15.1 (16612.2.9.1.30, 16612).
Comment 1 kari.pihkala 2021-11-30 07:23:52 PST
Note: Step 1 is not necessary. Just open the testcase.html on iPhone or Mac by clicking the link to the attachment 445512 [details].
Comment 2 kari.pihkala 2021-11-30 23:28:49 PST
Sorry, it's the attachment 445412 [details] (not 445512).
Comment 3 Radar WebKit Bug Importer 2021-12-07 07:14:21 PST
<rdar://problem/86155189>