Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d3e5e156482fdbdd56bbb62c9f47f20291265818
https://github.com/WebKit/WebKit/commit/d3e5e156482fdbdd56bbb62c9f47f20291265818
Author: Fady Farag <[email protected]>
Date: 2026-09-02 (Wed, 02 Sep 2026)
Changed paths:
M Source/WebCore/platform/xr/PlatformXR.h
M Source/WebCore/testing/WebFakeXRDevice.cpp
M Source/WebKit/Shared/XR/XRDeviceProxy.cpp
Log Message:
-----------
Harden `PlatformXR::Device` by making `TrackingAndRenderingClient`
ref-countable
https://bugs.webkit.org/show_bug.cgi?id=323161
rdar://186410747
Reviewed by Dan Glastonbury and Chris Dumez.
This makes `TrackingAndRenderingClient` ref-countable since nothing enforces
that the client stays alive across its virtual functions.
No new tests, no behavior change.
* Source/WebCore/platform/xr/PlatformXR.h:
* Source/WebCore/testing/WebFakeXRDevice.cpp:
(WebCore::SimulatedXRDevice::setVisibilityState):
(WebCore::SimulatedXRDevice::simulateShutdownCompleted):
(WebCore::SimulatedXRDevice::initializeTrackingAndRendering):
* Source/WebKit/Shared/XR/XRDeviceProxy.cpp:
(WebKit::XRDeviceProxy::sessionDidEnd):
(WebKit::XRDeviceProxy::updateSessionVisibilityState):
(WebKit::XRDeviceProxy::sessionDidInitializeRendering):
(WebKit::XRDeviceProxy::initializeTrackingAndRendering):
Canonical link: https://commits.webkit.org/320347@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications