[Webkit-unassigned] [Bug 273371] New: Inconsistency: click event inside dialog Shadow DOM on iOS
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Apr 28 05:19:19 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=273371
Bug ID: 273371
Summary: Inconsistency: click event inside dialog Shadow DOM on
iOS
Product: WebKit
Version: Safari 17
Hardware: iPhone / iPad
OS: iOS 17
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: opendarwin at lapcatsoftware.com
Created attachment 471188
--> https://bugs.webkit.org/attachment.cgi?id=471188&action=review
Example HTML demonstrating the issue
Steps to reproduce:
1. Open the attached example HTML
2. Open the web inspector
3. Click the "Shadow?" checkbox
4. Click the link
Expected results: "click shadow button" is not logged in the console
Actual results: "click shadow button" is logged in the console
The expected results occur for all desktop web browsers: Safari, Chrome, Firefox. Mobile Safari's behavior is inconsistent with those.
Discussion: The pointerdown event on the link calls preventDefault and shows a modal dialog. The example HTML has two dialogs, one of which is chosen by the Shadow? checkbox. Each dialog has a button inside, but one button is inside the Shadow DOM and one not. When the button is not inside the Shadow DOM, it doesn't receive a click event as a result of clicking on the link. When the button is inside the Shadow DOM, it doesn't receive a click event on desktop either but does on iOS.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240428/0d12286b/attachment.htm>
More information about the webkit-unassigned
mailing list