Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2f3b142cf65b9012903b7432bb4846bbe8f4824b
      
https://github.com/WebKit/WebKit/commit/2f3b142cf65b9012903b7432bb4846bbe8f4824b
  Author: Zak Ridouh <[email protected]>
  Date:   2026-09-28 (Mon, 28 Sep 2026)

  Changed paths:
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/UIProcess/WebProcessPool.h
    M Tools/TestWebKitAPI/Tests/WebKit/WKWebView/mac/HIDGamepads.mm

  Log Message:
  -----------
  [Site Isolation] Gamepads are not exposed to cross-site iframes
<https://bugs.webkit.org/show_bug.cgi?id=325548>
<rdar://problem/188634318>

Reviewed by Charlie Wolfe.

Gamepad input was only sent to the main frame's process, so cross-site iframes 
never saw gamepads appear or update.
Send it to each of the page's processes that uses gamepads, and send visionOS 
gamepad access to all of them.

Test: Tools/TestWebKitAPI/Tests/WebKit/WKWebView/mac/HIDGamepads.mm

* Source/WebKit/UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::gamepadActivity):
(WebKit::WebPageProxy::allowGamepadAccess):
* Source/WebKit/UIProcess/WebProcessPool.h:
* Tools/TestWebKitAPI/Tests/WebKit/WKWebView/mac/HIDGamepads.mm:
(TestWebKitAPI::TEST(Gamepad, CrossSiteIframeReceivesInput)):

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



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

Reply via email to