w3ctag / design-reviews

W3C specs and API reviews
Creative Commons Zero v1.0 Universal
331 stars 55 forks source link

WebXR Device API XRSession::enabledFeatures attribute (CR Delta) #782

Closed alcooper91 closed 1 year ago

alcooper91 commented 1 year ago

Wotcher TAG!

I'm requesting a TAG review of the WebXR XRSession::enabledFeatures attribute.

This is a modification to the existing WebXR API since CR (the only one to date) to allow exposing “enabledFeatures” from the XRSession object. This allows developers to detect what features they requested actually end up enabled on the session. While most features have some ability to be detected, some features may have similar failure modes for not being enabled and being enabled but not currently having data to supply (many reference spaces for example). Some features (such as the newly proposed front-facing camera), don’t have any observable effects or any other way for us to signal to developers that it was enabled. While developers can be sure that if they received an XRSession they were granted all of their “requiredFeatures”, they cannot be sure of the state of their “optionalFeatures”.

Further details:

You should also know that... N/a

We'd prefer the TAG provide feedback as (please delete all but the desired option):

🐛 open issues in our GitHub repo for each point of feedback

himorin commented 1 year ago

note, we also have https://github.com/w3ctag/design-reviews/issues/588 for specific feature, after #545

torgo commented 1 year ago

We reviewed on today's call and we're happy to see this proceed. Thanks for raising it to us. ✨