[Feature Policy] Consider implications and practicality of requiring authors to enable policy-controlled features for underlying sensors #768
Labels
feature policy
All things related to Feature Policy
fixed by pending PR
A PR that is in review will resolve this issue.
Milestone
https://immersive-web.github.io/webxr/#feature-policy currently says:
While the motivation (in the explainer and more details in #732 (comment)) makes sense, the implications and practical considerations might mean this is not the best decision for users, developers, and implementations.
Perhaps most importantly, should user agents implement this requirement and application developers grant the necessary policies (i.e., the union of policy-controlled features required for all implementations devices), those developers would be allowing (direct) access to all such features (i.e., for cross-origin iframes) regardless of whether the underlying XR implementation needs it.
As an illustrative example, consider the case where a specific underlying sensor is used by a small portion of all user devices. In order to support them, an application must allow (direct) access to that underlying sensor data across all user agents. Or consider the case where an underlying sensor's data was previously accessible but this "back door" has been closed by the implementation or such devices are no longer in use; most applications that supported such devices would likely continue to allow (direct) access to that underlying sensor data across all user agents (either because the application is no longer maintained or the developer is unaware that it is safe to make the change).
In addition, it is worth considering the implications for both developers and implementers and whether this is the best solution.
For application developers:
"xr"
allows if we do not require feature policies for underlying sensors as they are to not understand that they need to allow the underlying sensor features if we do require them. At least in the latter (current) case, they will (hopefully) see failures, though it's not clear that this will lead them to consider whether they want to allow such access.For implementations:
Other considerations:
"xr"
feature implies that VR is allowed regardless of the way in which VR is implemented (i.e., [Feature Policy] Should "inline" with sensors ("magic window") be controlled by the same feature policy as immersive VR (headsets)? #730 but also more advanced mechanisms among HMDs). Does it not follow that this feature also allows access to all related necessary data - even if that is not otherwise directly allowed?The text was updated successfully, but these errors were encountered: