Bug 232123
| Summary: | First pointerdown event lost after context menu is triggered | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Andrew O <andrewohlmann> |
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | akeerthi, franco_vieira, graouts, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 15 | ||
| Hardware: | Mac (Intel) | ||
| OS: | macOS 10.15 | ||
Andrew O
Overview:
Pointer down events in Safari fail after triggering a context menu
Steps to Reproduce:
I've created a simple test case here: https://jsfiddle.net/pyzt3wf1/1/ which consists of a single div with some standard UI event listeners (mousedown, mouseup, pointerdown, pointerup, click ).
1) Right click (or ctrl-click) anywhere in content area of the browser window on the linked example to trigger the browser's context menu.
2) Dismiss the context menu by clicking outside of it.
3) Click on the "click me" button to trigger that div's event listeners, which should trigger console logs viewable in either Safari's developer tools or within jsfiddle's built-in console, viewable by clicking ">_ Console(beta)" at the bottom of the preview frame.
Actual Results:
All of the events fire their respective callback, except for pointerdown. The console reads:
mousedown
pointerup
mouseup
click
Subsequent clicks on the div appear to trigger events correctly.
Expected Results:
All of the events should fire their respective callback. The console should read:
pointerdown
mousedown
pointerup
mouseup
click
Date & Hardware: This bug has been reproduced on Safari 15.0 on both OS 10.15.7 and 11.6 . Similar behavior was experienced with Safari 14, although it hasn't been narrowed down to a reproducible case until now.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/84787733>
Franco Vieira de Souza
Still valid. Here's another fiddle, as the original isn't available anymore: https://jsfiddle.net/97qk6cex/
Franco Vieira de Souza
Pull request: https://github.com/WebKit/WebKit/pull/51164
EWS
Committed 300696@main (a19b08297f53): <https://commits.webkit.org/300696@main>
Reviewed commits have been landed. Closing PR #51164 and removing active labels.