Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6b1a69425ed2bf5b86f78e0d904e6b8d88862bb8
      
https://github.com/WebKit/WebKit/commit/6b1a69425ed2bf5b86f78e0d904e6b8d88862bb8
  Author: Zak Ridouh <[email protected]>
  Date:   2026-10-01 (Thu, 01 Oct 2026)

  Changed paths:
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm

  Log Message:
  -----------
  [Site Isolation] Context menu items do nothing in a cross-site iframe that 
isn't focused
<https://bugs.webkit.org/show_bug.cgi?id=326004>
<rdar://problem/188949563>

Reviewed by Charlie Wolfe.

The chosen context menu item was sent to the focused frame's process, so for a 
menu shown in a cross-site iframe without
focus it went to a process with no active menu. Send it to the process of the 
frame the menu was shown for.

Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm

* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::contextMenuItemSelected):
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/SiteIsolation.mm:
(TestWebKitAPI::TEST(SiteIsolation, 
ContextMenuCopyInUnfocusedCrossOriginFrame)):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to