tree: 17ea9c13018565765d68049a0ba22918895260a0 [path history] [tgz]
  1. feature_policy_corpus/
  2. feature_policy_value_corpus/
  3. BUILD.gn
  4. DEPS
  5. document_policy.h
  6. dom_feature_policy.cc
  7. dom_feature_policy.h
  8. feature_policy.dict
  9. feature_policy.idl
  10. feature_policy_attr_fuzzer.cc
  11. feature_policy_features.json5
  12. feature_policy_fuzzer.cc
  13. feature_policy_helper.h
  14. feature_policy_parser.cc
  15. feature_policy_parser.h
  16. feature_policy_test.cc
  17. feature_policy_value.dict
  18. feature_policy_value_fuzzer.cc
  19. iframe_policy.h
  20. layout_animations_policy.cc
  21. layout_animations_policy.h
  22. OWNERS
  23. policy_test.cc
  24. README.md
third_party/blink/renderer/core/feature_policy/README.md

This directory contains the renderer-specific portions of the Feature Policy API.

This includes:

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

  • Helpers for manipulating the parsed declarations.

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

Other feature policy resources

  • The core feature policy 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 Document::IsFeatureEnabled() (or SecurityContext::IsFeatureEnabled in a non- document context).