[webkit-changes] [WebKit/WebKit] fda388: [Site Isolation] Context menu events are always se...

Charlie Wolfe noreply at github.com
Mon Feb 12 20:25:30 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fda388552a877f757aa8216c8d116937fe8651f2
      https://github.com/WebKit/WebKit/commit/fda388552a877f757aa8216c8d116937fe8651f2
  Author: Charlie Wolfe <charliew at apple.com>
  Date:   2024-02-12 (Mon, 12 Feb 2024)

  Changed paths:
    A LayoutTests/http/tests/site-isolation/mouse-events/context-menu-main-frame-event-expected.txt
    A LayoutTests/http/tests/site-isolation/mouse-events/context-menu-main-frame-event.html
    A LayoutTests/http/tests/site-isolation/mouse-events/resources/context-menu-event-listener.html
    M Source/WebKit/WebProcess/WebPage/WebFrame.cpp

  Log Message:
  -----------
  [Site Isolation] Context menu events are always sent to the main frame
https://bugs.webkit.org/show_bug.cgi?id=269217
rdar://122819286

Reviewed by Alex Christensen.

Context menu events should not be handled if the mouse event hit a remote frame.

* LayoutTests/http/tests/site-isolation/mouse-events/context-menu-main-frame-event-expected.txt: Added.
* LayoutTests/http/tests/site-isolation/mouse-events/context-menu-main-frame-event.html: Added.
* LayoutTests/http/tests/site-isolation/mouse-events/resources/context-menu-event-listener.html: Added.
* Source/WebKit/WebProcess/WebPage/WebFrame.cpp:
(WebKit::WebFrame::handleMouseEvent):

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




More information about the webkit-changes mailing list