[webkit-changes] [WebKit/WebKit] 77b05b: WebXR should be considered a foreground session fo...
Tim Horton
noreply at github.com
Wed Mar 22 18:47:01 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 77b05b1540f32b5868caed59e0d9356e23358c4c
https://github.com/WebKit/WebKit/commit/77b05b1540f32b5868caed59e0d9356e23358c4c
Author: Tim Horton <timothy_horton at apple.com>
Date: 2023-03-22 (Wed, 22 Mar 2023)
Changed paths:
M Source/WebKit/UIProcess/Gamepad/ios/UIGamepadProviderIOS.mm
M Source/WebKit/UIProcess/WebPageProxy.h
M Source/WebKit/UIProcess/WebProcessProxy.cpp
M Source/WebKit/UIProcess/WebProcessProxy.h
M Source/WebKit/UIProcess/XR/PlatformXRSystem.h
Log Message:
-----------
WebXR should be considered a foreground session for gamepad purposes
https://bugs.webkit.org/show_bug.cgi?id=254290
rdar://103417224
Reviewed by Dean Jackson.
* Source/WebKit/UIProcess/WebPageProxy.h:
* Source/WebKit/UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::webPageWithActiveXRSession):
* Source/WebKit/UIProcess/WebProcessProxy.h:
* Source/WebKit/UIProcess/XR/PlatformXRSystem.h:
(WebKit::PlatformXRSystem::hasActiveSession const):
Expose a way to globally get the page with an active WebXR session.
* Source/WebKit/UIProcess/Gamepad/ios/UIGamepadProviderIOS.mm:
(WebKit::UIGamepadProvider::platformWebPageProxyForGamepadInput):
If we have no otherwise-active web view, assume the one with the WebXR session
is active, and route events there.
Canonical link: https://commits.webkit.org/261999@main
More information about the webkit-changes
mailing list