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

Provide example(s) of enabling disabled-by-default feature(s) #45

Closed
ddorwin opened this issue Nov 24, 2016 · 2 comments
Closed

Provide example(s) of enabling disabled-by-default feature(s) #45

ddorwin opened this issue Nov 24, 2016 · 2 comments

Comments

@ddorwin
Copy link

ddorwin commented Nov 24, 2016

The current Examples focus on disabling features. Since many features are disabled by default on nested contexts, there should be a clear example of this. The one example of enabling is somewhat advanced.

The following text from that example seems out of place, as if it was an intro to such an example:

Some features are disabled by default in embedded contexts. The enable policy allows the application to selectively enable such features for whitelisted origins.

@craigfrancis
Copy link

Maybe the spec could include a list of all policies, and show their nested context defaults?

The current list I've found is within the Chromium source code, and available as of Chrome 62 (to be released 17th October 2017):

https://cs.chromium.org/chromium/src/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp?type=cs&q=GetDefaultFeatureNameMap&l=206

  • camera
  • encrypted-media
  • fullscreen
  • geolocation
  • microphone
  • midi
  • payment
  • speaker
  • usb
  • vr

And for those with FeaturePolicyExperimentalFeaturesEnabled:

  • vibrate
  • cookie
  • domain
  • docwrite
  • sync-script
  • sync-xhr

@pabrai pabrai added the feedback label May 8, 2019
@pabrai pabrai added this to Feedback in FP Engagement May 13, 2019
@clelland
Copy link
Collaborator

Closing this with a textual change to one of the examples, which was actually showing how to do this. (The original issue refers to a version of the spec which is no longer current, and the examples have evolved over time)

Re #45 (comment): We now have https://github.com/w3c/webappsec-feature-policy/blob/master/features.md, which I believe includes all features spec'd or implemented (including those behind flags).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

4 participants