Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Intent to remove: navigator.xr.supportsSession

76 views
Skip to first unread message

Brandon Jones

unread,
Feb 12, 2025, 1:52:59 PMFeb 12
to blink-dev

Primary eng (and PM) emails

baj...@chromium.org


Summary

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.


Motivation

The API has been marked as deprecated for over 5 years. The function that replaced it provides identical functionality with better ergonomics. There is no need to retain the deprecated method.


Interoperability and Compatibility Risk

Extremely low. WebXR usage is low overall, and usage of this specific call is lower still, as shown here. Additionally, all major frameworks that are used to build WebXR content have been confirmed to have been updated to use the newer call, and all pages with WebXR content that were checked are using the newer method.


Edge: Supported the API change when originally made

Firefox: Never implemented

Safari: Never implemented


Alternative implementation suggestion for web developers

navigator.xr.isSessionSupported is a full replacement for this method.


Usage information from UseCounter

https://chromestatus.com/metrics/feature/timeline/popularity/2416


Entry on the feature dashboard

https://chromestatus.com/feature/5114816316047360

Rick Byers

unread,
Feb 12, 2025, 1:55:58 PMFeb 12
to Brandon Jones, blink-dev
A barely used WebXR-specific method that's been deprecated for 5+ years seems very low risk to me. LGTM1 to remove.

Rick

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAEGwwi2A6D5qauaU4nQHBB6%3D6H6eo6WMEv9tFS8%3DKk4hYu%3D9rg%40mail.gmail.com.

Domenic Denicola

unread,
Feb 12, 2025, 11:01:27 PMFeb 12
to blink-dev, Rick Byers, blink-dev, Brandon Jones
Can you request the various review gates in ChromeStatus?

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

Philip Jägenstedt

unread,
Feb 13, 2025, 5:40:57 AMFeb 13
to Domenic Denicola, blink-dev, Rick Byers, Brandon Jones
https://chromestatus.com/metrics/feature/timeline/popularity/2416 on its own makes the risk look very tolerable, and together with the outreach to WebXR frameworks it seems like a safe move.

LGTM2 with the reviews requested, as Dominik suggested.

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/b39bd741-be84-4730-9293-f45e4def4631n%40chromium.org.

Daniel Bratell

unread,
Feb 19, 2025, 4:28:10 AMFeb 19
to Philip Jägenstedt, Domenic Denicola, blink-dev, Rick Byers, Brandon Jones
Reply all
Reply to author
Forward
0 new messages