Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f8e8db847038a190ef76814e16ba9c57ace77e24
      
https://github.com/WebKit/WebKit/commit/f8e8db847038a190ef76814e16ba9c57ace77e24
  Author: Fujii Hironori <[email protected]>
  Date:   2025-12-10 (Wed, 10 Dec 2025)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/webxr/hit-test/ar_hittest_subscription_inputSources.https-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/webxr/hit-test/ar_hittest_subscription_refSpaces.https-expected.txt
    M Source/WebCore/Modules/webxr/WebXRHitTestResult.cpp
    M Source/WebCore/Modules/webxr/WebXRInputSource.cpp
    M Source/WebCore/Modules/webxr/WebXRInputSpace.cpp
    M Source/WebCore/Modules/webxr/WebXRInputSpace.h
    M Source/WebCore/Modules/webxr/WebXRReferenceSpace.h
    M Source/WebCore/Modules/webxr/WebXRSession.cpp
    M Source/WebCore/Modules/webxr/WebXRSpace.h
    M Source/WebCore/platform/xr/PlatformXR.h
    M Source/WebCore/testing/WebFakeXRDevice.cpp
    M Source/WebKit/Shared/XR/PlatformXR.serialization.in

  Log Message:
  -----------
  [WebXR Hit Test] 
imported/w3c/web-platform-tests/webxr/hit-test/ar_hittest_subscription_refSpaces.https.html
 fails
https://bugs.webkit.org/show_bug.cgi?id=303516

Reviewed by Sergio Villar Senin.

Take the space of XRHitTestOptionsInit into account. Hit test should be
performed in the space. Added a new type PlatformXR::NativeOriginInformation
that supports reference spaces and input source spaces at the moment.

Added a new WebXRSpace subclass WebXRHitTestResultSpace in
WebXRHitTestResult.cpp to populate the pose of hit test result.

Tests: 
imported/w3c/web-platform-tests/webxr/hit-test/ar_hittest_subscription_refSpaces.https.html
       
imported/w3c/web-platform-tests/webxr/hit-test/ar_hittest_subscription_inputSources.https.html

* 
LayoutTests/imported/w3c/web-platform-tests/webxr/hit-test/ar_hittest_subscription_inputSources.https-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/webxr/hit-test/ar_hittest_subscription_refSpaces.https-expected.txt:
* Source/WebCore/Modules/webxr/WebXRHitTestResult.cpp:
(WebCore::WebXRHitTestResultSpace::WebXRHitTestResultSpace):
(WebCore::WebXRHitTestResult::getPose):
* Source/WebCore/Modules/webxr/WebXRInputSource.cpp:
(WebCore::WebXRInputSource::WebXRInputSource):
(WebCore::WebXRInputSource::update):
* Source/WebCore/Modules/webxr/WebXRInputSpace.cpp:
(WebCore::WebXRInputSpace::create):
(WebCore::WebXRInputSpace::WebXRInputSpace):
(WebCore::WebXRInputSpace::nativeOriginInformation const):
* Source/WebCore/Modules/webxr/WebXRInputSpace.h:
* Source/WebCore/Modules/webxr/WebXRReferenceSpace.h:
* Source/WebCore/Modules/webxr/WebXRSession.cpp:
(WebCore::WebXRSession::requestHitTestSource):
* Source/WebCore/Modules/webxr/WebXRSpace.h:
(WebCore::WebXRSpace::nativeOriginInformation const):
* Source/WebCore/platform/xr/PlatformXR.h:
* Source/WebCore/testing/WebFakeXRDevice.cpp:
(WebCore::SimulatedXRDevice::frameTimerFired):
* Source/WebKit/Shared/XR/PlatformXR.serialization.in:

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



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

Reply via email to