Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not handle context menu events when pointer is locked #13222

Merged
merged 1 commit into from Apr 28, 2023

Conversation

aprotyas
Copy link
Member

@aprotyas aprotyas commented Apr 27, 2023

54d5339

Do not handle context menu events when pointer is locked
https://bugs.webkit.org/show_bug.cgi?id=256024
rdar://103961310

Reviewed by Wenson Hsieh.

When pointer lock is active, we do not want to show the context menu.
This commit achieves said behavior by not handling context menu events
when the pointer is locked in a page.

* LayoutTests/pointer-lock/mouse-event-delivery-expected.txt:
* LayoutTests/pointer-lock/mouse-event-delivery.html:
* Source/WebCore/page/EventHandler.cpp:
(WebCore::EventHandler::sendContextMenuEvent):

Canonical link: https://commits.webkit.org/263475@main

64b76ff

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  wincairo
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ§ͺ wpe-wk2
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac βœ… πŸ›  gtk
βœ… πŸ§ͺ ios-wk2-wpt βœ… πŸ§ͺ mac-wk1 ❌ πŸ§ͺ gtk-wk2
βœ… πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk2 βœ… πŸ§ͺ api-gtk
βœ… πŸ›  tv βœ… πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-wk2-stress
βœ… πŸ›  πŸ§ͺ merge βœ… πŸ›  watch
βœ… πŸ›  watch-sim

@aprotyas aprotyas requested a review from cdumez as a code owner April 27, 2023 03:20
@aprotyas aprotyas self-assigned this Apr 27, 2023
@aprotyas aprotyas added the UI Events For bugs related to user interactions like keyboard, mouse, and touch events. label Apr 27, 2023
Copy link
Member

@whsieh whsieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=mews

Source/WebCore/page/EventHandler.cpp Outdated Show resolved Hide resolved
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Apr 27, 2023
@aprotyas aprotyas removed the merging-blocked Applied to prevent a change from being merged label Apr 27, 2023
@webkit-early-warning-system
Copy link
Collaborator

Starting EWS tests for 64b76ff. Live statuses available at the PR page, #13222

@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Apr 27, 2023
@whsieh whsieh added merge-queue Applied to send a pull request to merge-queue and removed merging-blocked Applied to prevent a change from being merged labels Apr 28, 2023
https://bugs.webkit.org/show_bug.cgi?id=256024
rdar://103961310

Reviewed by Wenson Hsieh.

When pointer lock is active, we do not want to show the context menu.
This commit achieves said behavior by not handling context menu events
when the pointer is locked in a page.

* LayoutTests/pointer-lock/mouse-event-delivery-expected.txt:
* LayoutTests/pointer-lock/mouse-event-delivery.html:
* Source/WebCore/page/EventHandler.cpp:
(WebCore::EventHandler::sendContextMenuEvent):

Canonical link: https://commits.webkit.org/263475@main
@webkit-commit-queue
Copy link
Collaborator

Committed 263475@main (54d5339): https://commits.webkit.org/263475@main

Reviewed commits have been landed. Closing PR #13222 and removing active labels.

@webkit-commit-queue webkit-commit-queue merged commit 54d5339 into WebKit:main Apr 28, 2023
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Apr 28, 2023
@aprotyas aprotyas deleted the eng/103961310 branch April 28, 2023 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI Events For bugs related to user interactions like keyboard, mouse, and touch events.
Projects
None yet
5 participants