Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: af766a39e534b739201556ee7c0c8abb9c1f2d62
      
https://github.com/WebKit/WebKit/commit/af766a39e534b739201556ee7c0c8abb9c1f2d62
  Author: Sergio Villar Senin <[email protected]>
  Date:   2025-11-19 (Wed, 19 Nov 2025)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/webxr/layers/xrSession_updateRenderState.https-expected.txt
    M LayoutTests/platform/glib/TestExpectations
    M Source/WebCore/Modules/webxr/WebXRSession.cpp
    M Source/WebCore/Modules/webxr/WebXRSystem.cpp
    M Source/WebCore/platform/xr/PlatformXR.h
    M Source/WebKit/Shared/XR/PlatformXR.serialization.in
    M Source/WebKit/Shared/XR/XRDeviceProxy.cpp
    M Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h
    M Source/WebKit/UIProcess/API/glib/WebKitXRPermissionRequest.cpp
    M Source/WebKit/UIProcess/API/glib/WebKitXRPermissionRequest.h.in
    M Source/WebKit/UIProcess/Cocoa/UIDelegate.mm
    M Source/WebKit/UIProcess/XR/openxr/PlatformXROpenXR.cpp

  Log Message:
  -----------
  [WebXR] Add support for "layers" feature descriptor
https://bugs.webkit.org/show_bug.cgi?id=302388

Reviewed by Mike Wyrzykowski.

Users should ask for the "layers" feature when requesting a new session
whenever they're planning to create and use WebXR layers. UAs should
block the creation of those layers if the feature was not properly
requested before. We're adding a new session feature called "layers"
that will be parsed on session request and eventually checked once we
add support for the different types of layers (projection layers do not
require the presence of the session feature).

All the xrSession_updateRenderState subtests PASS now.

* 
LayoutTests/imported/w3c/web-platform-tests/webxr/layers/xrSession_updateRenderState.https-expected.txt:
* LayoutTests/platform/glib/TestExpectations:
* Source/WebCore/Modules/webxr/WebXRSession.cpp:
(WebCore::WebXRSession::updateRenderState):
* Source/WebCore/Modules/webxr/WebXRSystem.cpp:
(WebCore::WebXRSystem::isFeaturePermitted const):
(WebCore::WebXRSystem::isFeatureSupported const):
* Source/WebCore/platform/xr/PlatformXR.h:
(PlatformXR::parseSessionFeatureDescriptor):
(PlatformXR::sessionFeatureDescriptor):
* Source/WebKit/Shared/XR/PlatformXR.serialization.in:
* Source/WebKit/Shared/XR/XRDeviceProxy.cpp:
(WebKit::XRDeviceProxy::XRDeviceProxy):
* Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
* Source/WebKit/UIProcess/API/glib/WebKitXRPermissionRequest.cpp:
(toFeatureList):
(toWebKitXRSessionFeatures):
* Source/WebKit/UIProcess/API/glib/WebKitXRPermissionRequest.h.in:
* Source/WebKit/UIProcess/Cocoa/UIDelegate.mm:
(WebKit::toWKXRSessionFeatureFlags):
(WebKit::toPlatformXRFeatures):
* Source/WebKit/UIProcess/XR/openxr/PlatformXROpenXR.cpp:
(WebKit::OpenXRCoordinator::getPrimaryDeviceInfo):

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



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

Reply via email to