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

  1. navigator.xr.supportsSession removed

    Live capability probe: confirm isSessionSupported is present and supportsSession is gone.

  2. One-shot rewrite to the modern API

    Paste any code; the tool rewrites every reference from supportsSession to isSessionSupported with a side-by-side diff.

  3. XR supportsSession codemod explorer

    Live probes for both navigator.xr presence and whether supportsSession still exists. Paste real code, the codemod rewrites calls and adds feature-detect guards ready for CI.

  4. XR session matrix

    Test all three WebXR session modes — immersive-vr, immersive-ar, and inline — against this device using isSessionSupported(). Also probes API presence: confirms supportsSession is removed and requestSession is 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.

references