v135 · device
Remove deprecated navigator.xr.supportsSession method
navigator.xr.supportsSession was replaced in the WebXR spec by the navigator.xr.isSessionSupported method in September of 2019 after receiving feedback on the API shape from the TAG. It has been marked as deprecated in Chromium since then, producing a console warning redirecting developers to the updated API. Usage of the call is very low, as shown here:
concepts
-
navigator.xr.supportsSession removed
Live capability probe: confirm
isSessionSupportedis present andsupportsSessionis gone. -
One-shot rewrite to the modern API
Paste any code; the tool rewrites every reference from
supportsSessiontoisSessionSupportedwith a side-by-side diff. -
XR supportsSession codemod explorer
Live probes for both
navigator.xrpresence and whethersupportsSessionstill exists. Paste real code, the codemod rewrites calls and adds feature-detect guards ready for CI. -
XR session matrix
Test all three WebXR session modes —
immersive-vr,immersive-ar, andinline— against this device usingisSessionSupported(). Also probes API presence: confirmssupportsSessionis removed andrequestSessionis still there.
why it shipped
API was updated in 2019 after TAG feedback and the older version of the function has been marked deprecated ever since.