[webkit-changes] [WebKit/WebKit] 54d533: Do not handle context menu events when pointer is ...

Abrar Rahman Protyasha noreply at github.com
Thu Apr 27 17:21:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 54d533997e83625142ab8063664fb21a2324d0e9
      https://github.com/WebKit/WebKit/commit/54d533997e83625142ab8063664fb21a2324d0e9
  Author: Abrar Rahman Protyasha <a_protyasha at apple.com>
  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




More information about the webkit-changes mailing list