Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 54d533997e83625142ab8063664fb21a2324d0e9
https://github.com/WebKit/WebKit/commit/54d533997e83625142ab8063664fb21a2324d0e9
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2023-04-27 (Thu, 27 Apr 2023)
Changed paths:
M LayoutTests/pointer-lock/mouse-event-delivery-expected.txt
M LayoutTests/pointer-lock/mouse-event-delivery.html
M Source/WebCore/page/EventHandler.cpp
Log Message:
-----------
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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes