tree: 8aa6f0cad90f2d32912e9ee23a45d5cf2bc65212 [path history] [tgz]
  1. BUILD.gn
  2. DEPS
  3. OWNERS
  4. README.md
  5. dom_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_corpus/
  12. feature_policy_features.json5
  13. feature_policy_fuzzer.cc
  14. feature_policy_helper.h
  15. feature_policy_parser.cc
  16. feature_policy_parser.h
  17. feature_policy_parser_delegate.h
  18. feature_policy_test.cc
  19. feature_policy_value.dict
  20. feature_policy_value_corpus/
  21. feature_policy_value_fuzzer.cc
  22. iframe_policy.h
  23. layout_animations_policy.cc
  24. layout_animations_policy.h
  25. policy_test.cc
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).