Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ecc285cdc5928c9cd71bd2bd07c7bc70f4c5ed2e
      
https://github.com/WebKit/WebKit/commit/ecc285cdc5928c9cd71bd2bd07c7bc70f4c5ed2e
  Author: Dan Glastonbury <[email protected]>
  Date:   2026-01-14 (Wed, 14 Jan 2026)

  Changed paths:
    M Source/WebKit/Shared/XR/XRDeviceProxy.cpp

  Log Message:
  -----------
  [WebXR] WebXR incorrectly reports support for 'immersive-ar' sessions
https://bugs.webkit.org/show_bug.cgi?id=305459
rdar://167724198

Reviewed by Cameron McCormack

navigator.xr.isSessionSupported() returns true when queried about Immersive AR,
even though immersive AR is unsupported on VisionOS. This is because
SessionFeature::Layers is unconditionally appended to deviceInfo.arFeatures in
XRDeviceInfo constructor.

An empty features array signals that the entire feature is unavailable, so only
add SessionFeature::Layers when deviceInfo.arFeatures is not empty fixes
isSessionSupported() supriously reporting Immersive AR is supported.

* Source/WebKit/Shared/XR/XRDeviceProxy.cpp:
(WebKit::XRDeviceProxy::XRDeviceProxy):

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



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

Reply via email to