Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Policy] What should be the policy-controlled features for WebXR? #729

Closed
ddorwin opened this issue Jun 21, 2019 · 4 comments
Closed
Labels
feature policy All things related to Feature Policy fixed by pending PR A PR that is in review will resolve this issue. privacy-and-security Issues related to privacy and security

Comments

@ddorwin
Copy link
Contributor

ddorwin commented Jun 21, 2019

[This is one of the decisions to make as part of resolving #308.]

We need to decide what categories of functionality we want applications to be able to enable/disable via Feature Policy, especially for third-party iframes. These will be new policy-controlled features.

This might be "xr" for access to the API, "vr" for VR functionality, and/or "ar"/"rwu"for real world understanding.

However, note that policy-controlled features tend to cover types of powerful access and be one per API or even cover multiple APIs.

Thus, it's possible that we'll want to instead define policy-controlled features that describe the type of information the application will have access to.

Note also that not all VR headsets present the same level of privacy concerns. For example, a site that allows an iframe to use WebXR for a VR video may not expect that iframe to also get access to eye tracking.

@ddorwin
Copy link
Contributor Author

ddorwin commented Jun 21, 2019

Assuming there are multiple WebXR-related policy-controlled features, we'll also need to decide whether there are any "implies" relationships (i.e., "ar" implies "vr"). It seems like this might have the potential to be regrettable as hardware evolves. This decision should come after addressing the main questions above.

@toji toji added the privacy-and-security Issues related to privacy and security label Jun 21, 2019
@cwilso cwilso added this to the July 2019 milestone Jun 24, 2019
@ddorwin
Copy link
Contributor Author

ddorwin commented Jul 18, 2019

Expanding on the original description:

  • It's perhaps relevant to consider that the most common use of Feature Policy is an "On" switch for third-party iframes (where the default is "Off" for most new policy-controlled features). Thus, developers are deciding whether to grant access to an untrusted party. (While Feature Policy can also be used to prevent your own pages from doing things, this seems less relevant for XR.)
  • We'll need to decide whether to divide things based on type of experience, API, or capabilities enabled.
  • One difficulty is that even "VR" is not a finite space. For example, VR systems might add tracking or other capabilities that raise concerns similar to those for AR.
    • Should we give developers the option of differentiating such access?
    • Conversely, should we take steps to avoid implying that XR-related policy controls are intended to provide control over the specific types of data that are exposed?

In addition, note that we can't practically add granularity later - going with ""xr" implies VR" (the outcome of #308) now means that developers will need to assume that "xr" gives access to all data that might fall under "VR" even if future versions of the specification and/or implementations move some functionality to separate policy-controlled features.

@ddorwin
Copy link
Contributor Author

ddorwin commented Jul 19, 2019

The outcome of #308 is that all features included in "VR complete" are controlled by "xr". Thus, the question this issue poses is partially answered. It's perhaps worth reviewing the text above to see if there are any concerns with this outcome.

Beyond that, this issue mainly applies to future features and serves as background for #770.

@NellWaliczek NellWaliczek modified the milestones: July 2019, August 2019 Jul 19, 2019
@toji toji modified the milestones: August 2019, September 2019 Sep 5, 2019
@NellWaliczek NellWaliczek added the feature policy All things related to Feature Policy label Sep 5, 2019
@probot-label probot-label bot added the fixed by pending PR A PR that is in review will resolve this issue. label Sep 21, 2019
@probot-label
Copy link

probot-label bot commented Sep 21, 2019

This issue is fixed by PR #842

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature policy All things related to Feature Policy fixed by pending PR A PR that is in review will resolve this issue. privacy-and-security Issues related to privacy and security
Projects
None yet
Development

No branches or pull requests

5 participants