Firefox Touch Simulation causes click events to not be dispatched on buttons in the Shadow DOM
Categories
(DevTools :: Responsive Design Mode, defect, P3)
Tracking
(Not tracked)
People
(Reporter: ldebeasi, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
1.54 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36
Steps to reproduce:
- Open provided code reproduction.
- Open Firefox Developer Tools, and go to the "Console" tab.
- Enable "Responsive Design Mode", but ensure that "Touch Simulation" is disabled.
- Click the square. You should notice a "Button was clicked!" message is logged to the console.
- Enable "Touch Simulation".
- Click the square. You should notice that the "Button was clicked!" message is not logged to the console.
Actual results:
When Touch Simulation is enabled, the click event is not dispatched on the button.
Expected results:
I would expect that the click event be dispatched on the button regardless of simulation state. The message is logged correctly when running this code sample on a physical mobile device or in Chrome/Safari Dev Tools Responsive Design Mode.
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Hello, thank you for filing this issue! I can confirm this issue is reproducible in Firefox 76 using the above STR. However, the issue does not occur using a recent version of Firefox Nightly. I believe the recent touch simulation work available there has fixed this.
Reporter | ||
Comment 3•5 years ago
|
||
I can confirm that the issue does not occur using Firefox 78.0a1 (Firefox Nightly). Thank you!
Comment 4•5 years ago
|
||
Awesome! I'll resolve this issue as fixed (by Bug 1623941) .
Description
•