[webkit-changes] [WebKit/WebKit] a08c41: [WebXR] Runtime reachability of WebXR IPC endpoints

Dan Glastonbury noreply at github.com
Tue Jan 23 16:52:52 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a08c416bdc77ff4dbf291402a8199f2f77f7802f
      https://github.com/WebKit/WebKit/commit/a08c416bdc77ff4dbf291402a8199f2f77f7802f
  Author: Dan Glastonbury <djg at apple.com>
  Date:   2024-01-23 (Tue, 23 Jan 2024)

  Changed paths:
    M Source/WebKit/UIProcess/XR/PlatformXRSystem.cpp
    M Source/WebKit/UIProcess/XR/PlatformXRSystem.h
    M Source/WebKit/UIProcess/XR/PlatformXRSystem.messages.in
    M Source/WebKit/WebProcess/XR/PlatformXRSystemProxy.cpp
    M Source/WebKit/WebProcess/XR/PlatformXRSystemProxy.h
    M Source/WebKit/WebProcess/XR/PlatformXRSystemProxy.messages.in

  Log Message:
  -----------
  [WebXR] Runtime reachability of WebXR IPC endpoints
https://bugs.webkit.org/show_bug.cgi?id=267903
rdar://121410997

Reviewed by Alex Christensen and Tim Horton.

This change uses [EnabledIf=""] attribute to enable reachability to WebXR
IPC endpoints on when WebXREnabled preference is enabled. This allows runtime
control over handling of messages, with any messages received when disabled
being dropped.

* Source/WebKit/UIProcess/XR/PlatformXRSystem.cpp:
(WebKit::PlatformXRSystem::webXREnabled const):
* Source/WebKit/UIProcess/XR/PlatformXRSystem.h:
* Source/WebKit/UIProcess/XR/PlatformXRSystem.messages.in:
* Source/WebKit/WebProcess/XR/PlatformXRSystemProxy.cpp:
(WebKit::PlatformXRSystemProxy::webXREnabled const):
* Source/WebKit/WebProcess/XR/PlatformXRSystemProxy.h:
* Source/WebKit/WebProcess/XR/PlatformXRSystemProxy.messages.in:

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




More information about the webkit-changes mailing list