tree: e063351cd6ba197a4c9f711ac2ffa25580cef348 [path history] [tgz]
  1. document_policy_corpus/
  2. feature_policy_corpus/
  3. permissions_policy_corpus/
  4. build.gni
  5. DEPS
  6. document_policy.dict
  7. document_policy_features.json5
  8. document_policy_fuzzer.cc
  9. document_policy_parser.cc
  10. document_policy_parser.h
  11. document_policy_parser_test.cc
  12. document_policy_sim_test.cc
  13. dom_feature_policy.cc
  14. dom_feature_policy.h
  15. feature_policy.dict
  16. feature_policy.idl
  17. feature_policy_attr_fuzzer.cc
  18. feature_policy_devtools_support.cc
  19. feature_policy_devtools_support.h
  20. feature_policy_devtools_support_test.cc
  21. feature_policy_features.json5
  22. feature_policy_fuzzer.cc
  23. feature_policy_parser.cc
  24. feature_policy_parser.h
  25. feature_policy_test.cc
  26. iframe_policy.h
  27. layout_animations_policy.cc
  28. layout_animations_policy.h
  29. OWNERS
  30. permissions_policy.dict
  31. permissions_policy_fuzzer.cc
  32. policy_helper.h
  33. policy_test.cc
  34. README.md
chromium/src/third_party/blink/renderer/core/feature_policy/README.md

This directory contains the renderer-specific portions of the Permissions Policy API, and Document Policy API.

This includes:

  • The parser for the HTTP Permissions-Policy/Feature-Policy header and the iframe allow attribute.

  • The parser for the HTTP Document-Policy header and the iframe policy attribute.

  • Helpers for manipulating the parsed declarations.

  • Implementation of the document.featurePolicy and iframe.featurePolicy interfaces.

Other policy resources

  • The core algorithms can be found in /common/feature\_policy/.

  • The feature list enum is found in /public/mojom/feature\_policy/.

  • The recommended API for checking whether features should be enabled or not is ExecutionContext::IsFeatureEnabled().